From 402f95c2a35ba8f1b8a061ed97ba48f8e41adf56 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 09 二月 2023 10:24:49 +0800 Subject: [PATCH] 登录上限提示 --- src/views/PackageTwo/index.vue | 8 +++----- src/components/login.vue | 11 +++++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/login.vue b/src/components/login.vue index b34fffa..daf1d2f 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -243,6 +243,13 @@ }); return } + + if (response.msg != "") { + this.$message({ + message: response.msg, + type: 'warning' + }); + } this.setCookies(response); getPerms().then((res) => { @@ -283,7 +290,7 @@ uname: res.result.uname, time: timeData, userid: res.result.createUser, - expire: res.result.expire + expire: res.result.expire }; LfPrems = JSON.stringify(LfPrems); localStorage.setItem('LFToken', LfPrems); @@ -294,7 +301,7 @@ if (this.$route.path == '/login' && (e.code == 'Enter' || e.code == 'enter' || e.code == 'NumpadEnter')) { - + //鏈�閲嶈鏈�鍚庤皟鐢�1.鐧诲綍鏍¢獙鏂规硶 //this.login(); this.submitForm('loginForm') diff --git a/src/views/PackageTwo/index.vue b/src/views/PackageTwo/index.vue index 5810b11..bf2bea5 100644 --- a/src/views/PackageTwo/index.vue +++ b/src/views/PackageTwo/index.vue @@ -1,17 +1,15 @@ <template> - + </template> <script> export default { -mounted(){ - debugger + mounted() { // this.$router.push('/QualityInspection') this.$router.push('/WareInspection') -} + } } </script> <style> - </style> \ No newline at end of file -- Gitblit v1.9.3