From c2f95b0b9090a2394b5b068582b932a5e57b86aa Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 05 九月 2023 18:19:37 +0800 Subject: [PATCH] 雷达图 新增综合风险排名 数据接入配置 --- src/views/login/LoginSystem.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/login/LoginSystem.vue b/src/views/login/LoginSystem.vue index 5ea8052..2739f79 100644 --- a/src/views/login/LoginSystem.vue +++ b/src/views/login/LoginSystem.vue @@ -20,6 +20,7 @@ placeholder="璇疯緭鍏ュ瘑鐮�" type="password" size="large" + show-password ></el-input> </el-form-item> @@ -30,6 +31,7 @@ </template> <script lang="ts"> +import Cookie from 'js-cookie' export default { data() { return { @@ -42,8 +44,10 @@ // 鐧诲綍閫昏緫 if (this.username === 'admin' && this.password === 'admin123') { ElMessage.success('鐧诲綍鎴愬姛'); + const token = 'abc' + Cookie.set('token',token) // 鐧诲綍鎴愬姛锛岃烦杞埌瀵瑰簲椤甸潰 - this.$router.push('/ndata') // 鍋囪鐧诲綍鎴愬姛鍚庤烦杞埌 '/dashboard' 椤甸潰 + this.$router.push('/edata') // 鍋囪鐧诲綍鎴愬姛鍚庤烦杞埌 '/dashboard' 椤甸潰 } else { // console.log('Login Failed!') ElMessage.error('璐﹀彿鎴栧瘑鐮侀敊璇�'); @@ -79,7 +83,8 @@ position: absolute; right: 10%; width: 20%; - height: 50%; + + height: 500; } .el-form-item { @@ -112,7 +117,7 @@ letter-spacing: 0.3em; text-align: center; box-sizing: border-box; - bottom: 80px; + bottom: 10px; } -- Gitblit v1.9.3