diff --git a/config/index.js b/config/index.js
index f6ea675..82b8418 100644
--- a/config/index.js
+++ b/config/index.js
@@ -9,10 +9,21 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
+ // proxyTable: {},
+ proxyTable: {
+ '/api': {
+ target: 'http://192.168.0.106:7080',
+ // target: 'http://39.101.166.211:8071/integrated_traffic_admin',
+ secure: true, // 如果是 https ,需要开启这个选项
+ changeOrigin: true, // 是否是跨域请求?肯定是啊,不跨域就没有必要配置这个proxyTable了.
+ pathRewrite: {
+ '^/api': '' // 和下边两种写法,因人而异根据需求。
+ }
+ }
+ },
// Various Dev Server settings
- host: 'localhost', // can be overwritten by process.env.HOST
+ host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/package.json b/package.json
index 87d8c01..0922689 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"author": "",
"private": true,
"scripts": {
- "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.69 --open",
+ "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.106 --open",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"e2e": "node test/e2e/runner.js",
diff --git a/src/views/classManage/classManage/components/StudentList.vue b/src/views/classManage/classManage/components/StudentList.vue
index 12245a6..a2d1c89 100644
--- a/src/views/classManage/classManage/components/StudentList.vue
+++ b/src/views/classManage/classManage/components/StudentList.vue
@@ -129,11 +129,11 @@
-
+
@@ -857,7 +857,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'student/downExcel'
+ window.location.href = config.httpurl + '/student/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/effect_appraisal/all_corp_effect/components/AllStrengthenDetailsList.vue b/src/views/effect_appraisal/all_corp_effect/components/AllStrengthenDetailsList.vue
index b7ab779..a0a231c 100644
--- a/src/views/effect_appraisal/all_corp_effect/components/AllStrengthenDetailsList.vue
+++ b/src/views/effect_appraisal/all_corp_effect/components/AllStrengthenDetailsList.vue
@@ -307,7 +307,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'student/downExcel'
+ window.location.href = config.httpurl + '/student/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/effect_appraisal/all_corp_effect/components/ClassStrengthenDetailsList.vue b/src/views/effect_appraisal/all_corp_effect/components/ClassStrengthenDetailsList.vue
index e38b9ee..07ca545 100644
--- a/src/views/effect_appraisal/all_corp_effect/components/ClassStrengthenDetailsList.vue
+++ b/src/views/effect_appraisal/all_corp_effect/components/ClassStrengthenDetailsList.vue
@@ -452,7 +452,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'student/downExcel'
+ window.location.href = config.httpurl + '/student/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/effect_appraisal/all_corp_effect/components/StudentStrengthenDetailsList.vue b/src/views/effect_appraisal/all_corp_effect/components/StudentStrengthenDetailsList.vue
index 5f77aff..375bbe3 100644
--- a/src/views/effect_appraisal/all_corp_effect/components/StudentStrengthenDetailsList.vue
+++ b/src/views/effect_appraisal/all_corp_effect/components/StudentStrengthenDetailsList.vue
@@ -505,7 +505,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'student/downExcel'
+ window.location.href = config.httpurl + '/student/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/effect_appraisal/all_corp_effect/components/list.vue b/src/views/effect_appraisal/all_corp_effect/components/list.vue
index d8c9a3e..089fd21 100644
--- a/src/views/effect_appraisal/all_corp_effect/components/list.vue
+++ b/src/views/effect_appraisal/all_corp_effect/components/list.vue
@@ -308,7 +308,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'student/downExcel'
+ window.location.href = config.httpurl + '/student/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/studyResource/examdraft/components/edit.vue b/src/views/studyResource/examdraft/components/edit.vue
index 84868d0..7820a43 100644
--- a/src/views/studyResource/examdraft/components/edit.vue
+++ b/src/views/studyResource/examdraft/components/edit.vue
@@ -665,7 +665,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'paperQuestion/downExcel'
+ window.location.href = config.httpurl + '/paperQuestion/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/studyResource/paper/components/edit.vue b/src/views/studyResource/paper/components/edit.vue
index f65d4d4..2eaa501 100644
--- a/src/views/studyResource/paper/components/edit.vue
+++ b/src/views/studyResource/paper/components/edit.vue
@@ -784,7 +784,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'paperQuestion/downExcel'
+ window.location.href = config.httpurl + '/paperQuestion/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/studyResource/paper/components/inherit.vue b/src/views/studyResource/paper/components/inherit.vue
index f279e3d..eefa13d 100644
--- a/src/views/studyResource/paper/components/inherit.vue
+++ b/src/views/studyResource/paper/components/inherit.vue
@@ -679,7 +679,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'paperQuestion/downExcel'
+ window.location.href = config.httpurl + '/paperQuestion/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/studyResource/question/index.vue b/src/views/studyResource/question/index.vue
index ed8ea2b..e9316cd 100644
--- a/src/views/studyResource/question/index.vue
+++ b/src/views/studyResource/question/index.vue
@@ -484,7 +484,7 @@ export default {
type: 'warning'
}).then(() => {
this.listLoading = false
- window.location.href = config.httpurl + 'question/downExcel'
+ window.location.href = config.httpurl + '/question/downExcel'
}).catch(() => {
this.listLoading = false
})
diff --git a/src/views/system/corpinfo/components/corpEdit.vue b/src/views/system/corpinfo/components/corpEdit.vue
index 5ccd4c0..d29feac 100644
--- a/src/views/system/corpinfo/components/corpEdit.vue
+++ b/src/views/system/corpinfo/components/corpEdit.vue
@@ -273,7 +273,7 @@
-