From 298503fec8e20cb66c5bb4cc4b60691518e5929b Mon Sep 17 00:00:00 2001 From: houjunxiang Date: Mon, 1 Dec 2025 10:54:45 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=99=BB=E5=87=BA=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defaultBaseUrl.js | 2 +- nx/api/laboratory.js | 10 +--------- pages/login/login.vue | 5 ++++- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/defaultBaseUrl.js b/defaultBaseUrl.js index 5cda2c7..4182c53 100644 --- a/defaultBaseUrl.js +++ b/defaultBaseUrl.js @@ -1,6 +1,6 @@ // 在此不用配置接口前缀 const isDev = process.env.NODE_ENV === 'development' -const BaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://192.168.26.116:888/admin-api' +const BaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://172.16.46.62:30081/admin-api' // const BaseUrl = isDev ? 'http://192.168.26.163:48080/admin-api' : 'http://192.168.26.116:888/admin-api' // // const BaseUrl = isDev ? 'http://localhost:9999' : '' diff --git a/nx/api/laboratory.js b/nx/api/laboratory.js index a565bd1..5b3024e 100644 --- a/nx/api/laboratory.js +++ b/nx/api/laboratory.js @@ -10,15 +10,7 @@ const getDeviceLaboratoryListBy = params => { } }) } -// 获取平板端菜单 -const getMenuForPAD = () => { - return request({ - url: '/sys/permission/getMenuForPAD', - method: 'GET' - }) -} export default { - getDeviceLaboratoryListBy, - getMenuForPAD + getDeviceLaboratoryListBy } diff --git a/pages/login/login.vue b/pages/login/login.vue index 6b2883a..cebe440 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -57,7 +57,7 @@ import callCheckUpdate from '@/nx/utils/check-update' const loading = ref(false) const captchaEnable = true let loginInfo = reactive({ - username: 'admin', + username: 'ytjySjfx1', password: 'P@ssword25', captchaVerification: '' }) @@ -132,6 +132,9 @@ function onCaptchaError(error) { }) loading.value = false } +onLoad(() => { + nx.$store('user').clearUserInfo() +})