From 8ab31157536e116dba27e942a05a20e3caaa4812 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 28 八月 2024 09:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit

---
 admin/src/views/login.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/admin/src/views/login.vue b/admin/src/views/login.vue
index c343084..16a3215 100644
--- a/admin/src/views/login.vue
+++ b/admin/src/views/login.vue
@@ -23,6 +23,7 @@
 <script>
 import { mapMutations } from 'vuex'
 import { getCaptcha, loginByPassword } from '@/api/system/common'
+import Cookies from "js-cookie";
 
 export default {
   name: 'Login',
@@ -58,13 +59,14 @@
         code: this.captcha.value.trim(),
         uuid: this.captcha.uuid
       })
-        .then(() => {
+        .then((res) => {
           // window.location.href = process.env.VUE_APP_CONTEXT_PATH
+          Cookies.set('dm_user_token',res)
           window.location.reload()
         })
         .catch(e => {
           this.refreshCaptcha()
-          this.$tip.apiFailed(e)
+          // this.$tip.apiFailed(e)
         })
         .finally(() => {
           this.loading = false

--
Gitblit v1.9.3