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 | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/views/login/LoginSystem.vue b/src/views/login/LoginSystem.vue index 8b89e3f..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,6 +44,8 @@ // 鐧诲綍閫昏緫 if (this.username === 'admin' && this.password === 'admin123') { ElMessage.success('鐧诲綍鎴愬姛'); + const token = 'abc' + Cookie.set('token',token) // 鐧诲綍鎴愬姛锛岃烦杞埌瀵瑰簲椤甸潰 this.$router.push('/edata') // 鍋囪鐧诲綍鎴愬姛鍚庤烦杞埌 '/dashboard' 椤甸潰 } else { -- Gitblit v1.9.3