From 737d9fc9ee40ba0c8e8c51a5e687ac1a4b95285a Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 28 May 2019 11:07:36 +0800 Subject: [PATCH 1/4] perf: default not set withCredentials --- src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index 71d5ea4..2fb95ac 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ import { getToken } from '@/utils/auth' // create an axios instance const service = axios.create({ baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url - withCredentials: true, // send cookies when cross-domain requests + // withCredentials: true, // send cookies when cross-domain requests timeout: 5000 // request timeout }) From b9202ade9b913a2333fd86d622d4326f9c7698ba Mon Sep 17 00:00:00 2001 From: Stephy Cat Date: Mon, 1 Jul 2019 23:38:18 +0800 Subject: [PATCH 2/4] chore: allow dynamic set port (#389) --- vue.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 18610d7..4244cfc 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,10 +7,13 @@ function resolve(dir) { } const name = defaultSettings.title || 'vue Admin Template' // page title + // If your port is set to 80, // use administrator privileges to execute the command line. // For example, Mac: sudo npm run -const port = 9528 // dev port +// You can change the port by the following methods: +// port = 9528 npm run dev OR npm run dev --port = 9528 +const port = process.env.port || process.env.npm_config_port || 9528 // dev port // All configuration item explanations can be find in https://cli.vuejs.org/config/ module.exports = { From 44c0d705c595df21bb04a6c39c77c1a4eecd66c2 Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 4 Jul 2019 16:34:24 +0800 Subject: [PATCH 3/4] bump: update @vue/cli-plugin-eslint version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 817a244..6b8a33f 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@babel/core": "7.0.0", "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.6.0", - "@vue/cli-plugin-eslint": "3.6.0", + "@vue/cli-plugin-eslint": "^3.9.1", "@vue/cli-plugin-unit-jest": "3.6.3", "@vue/cli-service": "3.6.0", "@vue/test-utils": "1.0.0-beta.29", From 00bfe07dc72b5cf3feee5ffe3874a29ed9cd71dc Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 4 Jul 2019 16:36:52 +0800 Subject: [PATCH 4/4] bump: update axios for security vulnerability --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6b8a33f..9403908 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" }, "dependencies": { - "axios": "0.18.0", + "axios": "0.18.1", "element-ui": "2.7.2", "js-cookie": "2.2.0", "normalize.css": "7.0.0",