From 51fa6f173a5a95e34b4ec31db77035dbaeb968c6 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期日, 29 九月 2024 19:36:11 +0800 Subject: [PATCH] fix some bug --- src/views/login/components/passwordForm.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index 0f39872..905acac 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -22,11 +22,11 @@ export default { data() { return { - socket: null, + socket: null, userType: 'admin', form: { - user: "admin", - password: "123456", + user: "", + password: "", autologin: false }, rules: { @@ -54,7 +54,7 @@ mounted() { //this.$HTTP.get('/api/blade-sync/outer-app-config/appStatus') }, - methods: { + methods: { async login() { var validate = await this.$refs.loginForm.validate().catch(() => { }) if (!validate) { return false } @@ -89,7 +89,7 @@ }); } }) - if(!isToken) return; + if (!isToken) return; //鑾峰彇鑿滃崟 await this.$HTTP.get("/api/blade-system/menu/routes?" + this.$TOOL.qsStringify({ "appCode": "CPS" })).then(res => { if (res.data.length == 0) { @@ -144,7 +144,7 @@ permissions: ["list.add", "list.edit", "list.delete", "user.add", "user.edit", "user.delete"] } this.$TOOL.data.set("MENU", obj.menu); - console.log(obj.menu,'menu') + console.log(obj.menu, 'menu') this.$TOOL.data.set("PERMISSIONS", obj.permissions) this.$TOOL.data.set("DASHBOARDGRID", obj.dashboardGrid) -- Gitblit v1.9.3