diff --git a/docs/server-end/node-learn/axios.md b/docs/server-end/node-learn/axios.md index aaf38491d..80acbdfc8 100644 --- a/docs/server-end/node-learn/axios.md +++ b/docs/server-end/node-learn/axios.md @@ -445,6 +445,7 @@ axios(options) 以Form data格式发送数据时,可以做如下处理: ```js +const Buffer = require('node:buffer') const FormData = require('form-data') const form = new FormData() diff --git a/docs/server-end/node-learn/stream.md b/docs/server-end/node-learn/stream.md index 18de168f7..98f082ef7 100644 --- a/docs/server-end/node-learn/stream.md +++ b/docs/server-end/node-learn/stream.md @@ -32,15 +32,17 @@ permalink: /server-end/node-learn/stream.html **依赖** ```json +{ "dependencies": { "@types/axios": "^0.14.0", "axios": "^1.2.2", - "express": "^4.18.2", + "express": "^4.18.2" }, "devDependencies": { "@types/express": "^4.17.15", - "@types/node": "^18.11.18", + "@types/node": "^18.11.18" } +} ``` **服务端** diff --git a/eslint.config.js b/eslint.config.js index 9ab620b92..20a7e58be 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -4,6 +4,5 @@ export default defineVipEslintConfig({ ignores: [ '**/CHANGELOG.md', ], - rules: { - }, + rules: {}, })