From 90855e258e2b1dbdcb1052e9af673bb55c7f3892 Mon Sep 17 00:00:00 2001
From: wanghaoyu <825151728@qq.com>
Date: Thu, 5 Dec 2019 16:48:23 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8A=9F=E8=83=BD=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E6=96=B0=E5=A2=9Evuex=E6=8F=92=E4=BB=B6?=
=?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=B7=A8=E7=BB=84=E4=BB=B6=E9=80=9A=E4=BF=A1?=
=?UTF-8?q?,=E8=B0=83=E6=95=B4=E5=9B=BD=E9=99=85=E5=8C=96=E5=AE=9E?=
=?UTF-8?q?=E7=8E=B0=E6=96=B9=E5=BC=8F,=E8=B0=83=E6=95=B4=E8=B7=AF?=
=?UTF-8?q?=E7=94=B1=E5=8F=82=E6=95=B0,=E7=99=BB=E5=BD=95=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
nezha-fronted/config/index.js | 4 +-
nezha-fronted/package-lock.json | 10 +-
nezha-fronted/package.json | 4 +-
.../src/components/common/header.vue | 102 +++++++++-----
nezha-fronted/src/components/common/home.vue | 2 +-
.../src/components/common/language/cn.js | 111 ++++-----------
.../src/components/common/language/en.js | 100 +++-----------
nezha-fronted/src/components/common/login.vue | 97 ++++++++++++-
.../src/components/common/sideBar.vue | 127 +++++++++++++-----
.../src/components/page/asset/asset.vue | 107 ++++++++++++---
.../src/components/page/dashboard.vue | 9 +-
nezha-fronted/src/http.js | 6 +-
nezha-fronted/src/main.js | 11 +-
nezha-fronted/src/store/index.js | 17 +++
14 files changed, 441 insertions(+), 266 deletions(-)
create mode 100644 nezha-fronted/src/store/index.js
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
简体
русский