diff --git a/nezha-fronted/config/index.js b/nezha-fronted/config/index.js
index f0bc0d882..e5f6ad870 100644
--- a/nezha-fronted/config/index.js
+++ b/nezha-fronted/config/index.js
@@ -1,4 +1,3 @@
-'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
@@ -11,7 +10,8 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api': {
- target: 'http://localhost:8088/nz-admin', //设置调用接口域名和端口号别忘了加http
+ target: 'http://192.168.40.247:8080/nz-admin', //设置调用接口域名和端口号别忘了加http
+ // target: 'http://192.168.40.247:8080/nz-admin', //设置调用接口域名和端口号别忘了加http
changeOrigin: true,
pathRewrite: {
'^/api': '/' //这里理解成用‘/api’代替target里面的地址,组件中我们调接口时直接用/api代替
diff --git a/nezha-fronted/package-lock.json b/nezha-fronted/package-lock.json
index 330b94fa6..7a1459fbe 100644
--- a/nezha-fronted/package-lock.json
+++ b/nezha-fronted/package-lock.json
@@ -11037,11 +11037,6 @@
"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.15.1.tgz",
"integrity": "sha512-GBbz8qYCu0U2LNu4IcuFLZiuyninG4k26knvhL7GZG5Ncp4RR2VKDEH6g8gQ6I+UUBCvH2MBQVPSdxWe4DBkPw=="
},
- "vue-infinite-scroll": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/vue-infinite-scroll/-/vue-infinite-scroll-2.0.2.tgz",
- "integrity": "sha512-n+YghR059YmciANGJh9SsNWRi1YZEBVlODtmnb/12zI+4R72QZSWd+EuZ5mW6auEo/yaJXgxzwsuhvALVnm73A=="
- },
"vue-loader": {
"version": "13.7.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-13.7.3.tgz",
@@ -11138,6 +11133,11 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true
},
+ "vuex": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.2.tgz",
+ "integrity": "sha512-ha3jNLJqNhhrAemDXcmMJMKf1Zu4sybMPr9KxJIuOpVcsDQlTBYLLladav2U+g1AvdYDG5Gs0xBTb0M5pXXYFQ=="
+ },
"watchpack": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz",
diff --git a/nezha-fronted/package.json b/nezha-fronted/package.json
index 694d3a655..2697ca5ba 100644
--- a/nezha-fronted/package.json
+++ b/nezha-fronted/package.json
@@ -14,8 +14,8 @@
"element-ui": "^2.13.0",
"vue": "^2.5.2",
"vue-i18n": "^8.15.1",
- "vue-infinite-scroll": "^2.0.2",
- "vue-router": "^3.0.1"
+ "vue-router": "^3.0.1",
+ "vuex": "^3.1.2"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue
index 2227cec14..c840b9da4 100644
--- a/nezha-fronted/src/components/common/header.vue
+++ b/nezha-fronted/src/components/common/header.vue
@@ -7,27 +7,33 @@
background-color="#ffffff"
unique-opened
>
-
English
简体
русский