From ccf69ee82f77a2e67a565cec02f95e64324a283f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 15 五月 2024 09:16:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
admin/src/views/login.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/admin/src/views/login.vue b/admin/src/views/login.vue
index c67c4a7..87b3f52 100644
--- a/admin/src/views/login.vue
+++ b/admin/src/views/login.vue
@@ -1,7 +1,7 @@
<template>
<div class="wrap">
<div class="introduce">
- <h2>璞嗙背璺宠烦</h2>
+ <h2>{{title}}</h2>
<h3></h3>
</div>
<div class="login">
@@ -23,12 +23,14 @@
<script>
import { mapMutations } from 'vuex'
import { getCaptcha, loginByPassword } from '@/api/system/common'
+import Cookies from "js-cookie";
export default {
name: 'Login',
data () {
return {
loading: false,
+ title: process.env.VUE_APP_TITLE,
username: '',
password: '',
// 楠岃瘉鐮�
@@ -57,8 +59,10 @@
code: this.captcha.value.trim(),
uuid: this.captcha.uuid
})
- .then(() => {
- window.location.href = process.env.VUE_APP_CONTEXT_PATH
+ .then((res) => {
+ // window.location.href = process.env.VUE_APP_CONTEXT_PATH
+ Cookies.set('dm_user_token',res)
+ window.location.reload()
})
.catch(e => {
this.refreshCaptcha()
--
Gitblit v1.9.3