提交一下修改

This commit is contained in:
daihh
2023-07-19 22:05:13 +08:00
parent 8ab7078357
commit a6054bb863
3 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ router.beforeEach((to, from, next) => {
// 判断当前控制台是否已拉取完数据
store.dispatch('InitData').then(res => {
//加载白名单信息
testUser.init();
//testUser.init();
//加载信息资源归属,系统分类信息
store.dispatch('resOwner/loadResOwners');
store.dispatch('sysType/loadSysTypes');

View File

@@ -7,6 +7,7 @@ const TokenKey = 'token'
export function getToken() {
return Cookies.get(TokenKey)
}
export function setToken(token) {
return Cookies.set(TokenKey, token)
}

View File

@@ -99,7 +99,7 @@
if (valid) {
this.$store.dispatch("Login", this.form).then(rs => {
if(rs.status == 200){
// 记住密码
//记住密码
localStorage.setItem(this.$xpage.constants.newLoginKey,1);
if(this.rememberMe){
let rememberMeOjb = {rememberMe:true,loginName:this.form.loginName,password:this.form.password};