From 7049adc8c8ba59af836cb6bdc1d44ff028e90b72 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Mon, 18 Apr 2022 17:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95-=E5=8A=A8=E6=80=81=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/api/login.js | 5 +- src/assets/styles/adminIndex.scss | 3 +- src/assets/styles/variables.scss | 8 +- src/layout/components/Navbar.vue | 21 ++- src/main.js | 12 +- src/router/index.js | 80 +++++---- src/router/routers.js | 209 +++++++++++----------- src/store/getters.js | 46 ++--- src/store/modules/user.js | 28 +-- src/utils/index.js | 9 + src/utils/request.js | 2 +- src/views/components/ThemeGalleryList.vue | 3 - src/views/login.vue | 5 +- 14 files changed, 228 insertions(+), 211 deletions(-) diff --git a/.env.development b/.env.development index 28f06a5..b56aa0d 100644 --- a/.env.development +++ b/.env.development @@ -4,12 +4,12 @@ ENV = 'development' #VUE_APP_BASE_API = '/dev-api' # 刘力-本地服地址 -#VUE_APP_BASE_API = 'http://192.168.99.103:7000' -#VUE_APP_WS_API = 'ws://192.168.99.103:7000' +VUE_APP_BASE_API = 'http://192.168.99.65:7000' +VUE_APP_WS_API = 'ws://192.168.99.65:7000' # 许镇-本地服地址 -VUE_APP_BASE_API = 'http://192.168.99.84:7000' -VUE_APP_WS_API = 'ws://192.168.99.84:7000' +#VUE_APP_BASE_API = 'http://192.168.99.84:7000' +#VUE_APP_WS_API = 'ws://192.168.99.84:7000' # 外网接口地址 #VUE_APP_BASE_API = 'https://yxkadmin.aiyxlib.com' diff --git a/src/api/login.js b/src/api/login.js index c11e561..d7edb9f 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -export function login(username, password, phone, code, uuid) { +export function login(username, password, phone, code, uuid, rememberMe) { return request({ url: 'auth/login', method: 'post', @@ -9,7 +9,8 @@ export function login(username, password, phone, code, uuid) { password, phone, code, - uuid + uuid, + rememberMe } }) } diff --git a/src/assets/styles/adminIndex.scss b/src/assets/styles/adminIndex.scss index 0783f80..cbdf069 100644 --- a/src/assets/styles/adminIndex.scss +++ b/src/assets/styles/adminIndex.scss @@ -43,13 +43,14 @@ img[src=""],img:not([src]){opacity:0;} .login-code { position: absolute; - right: 0; + right: 2px; top: 0; width: 33%; display: inline-block; height: 40px; img { + width: 100%; cursor: pointer; vertical-align: middle; } diff --git a/src/assets/styles/variables.scss b/src/assets/styles/variables.scss index a3cf334..8c42764 100644 --- a/src/assets/styles/variables.scss +++ b/src/assets/styles/variables.scss @@ -9,15 +9,15 @@ $yellow:#FEC171; $panGreen: #30B08F; // sidebar -$menuText:#bfcbd9; +$menuText:#333; $menuActiveText:#409EFF; -$subMenuActiveText:#f4f4f5; +$subMenuActiveText:#333; $menuBg:#fff; -$menuHover:#263445; +$menuHover:#3a8aeb; $subMenuBg:#fff; -$subMenuHover:#001528; +$subMenuHover:#3a8aeb; $sideBarWidth: 264px; diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 3a4e26e..625d8fd 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,22 +1,22 @@