Merge branch 'master' of https://github.com/YunaiV/ruoyi-vue-pro into feature/1.6.2
commit
ed847ac2ee
@ -0,0 +1,26 @@
|
|||||||
|
### 基本信息
|
||||||
|
|
||||||
|
- ruoyi-vue-pro 版本:
|
||||||
|
- 操作系统:
|
||||||
|
- 数据库:
|
||||||
|
|
||||||
|
### 复现步骤
|
||||||
|
|
||||||
|
第一步,
|
||||||
|
|
||||||
|
第二步,
|
||||||
|
|
||||||
|
第三步,
|
||||||
|
|
||||||
|
### 报错信息
|
||||||
|
|
||||||
|
[截图]
|
||||||
|
|
||||||
|
[截图]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
建议:项目不是很难,碰到问题时,建议先花 2-4 小时的时间进行自查。
|
||||||
|
|
||||||
|
Issue 中如果带上自己的分析,可以被更快更高效的解决。
|
||||||
|
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
name: 问题反馈
|
||||||
|
about: 请详细描述,以便更高快的获得到解决
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 基本信息
|
||||||
|
|
||||||
|
- ruoyi-vue-pro 版本:
|
||||||
|
- 操作系统:
|
||||||
|
- 数据库:
|
||||||
|
|
||||||
|
### 复现步骤
|
||||||
|
|
||||||
|
第一步,
|
||||||
|
|
||||||
|
第二步,
|
||||||
|
|
||||||
|
第三步,
|
||||||
|
|
||||||
|
### 报错信息
|
||||||
|
|
||||||
|
[截图]
|
||||||
|
|
||||||
|
[截图]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
建议:项目不是很难,碰到问题时,建议先花 2-4 小时的时间进行自查。
|
||||||
|
|
||||||
|
Issue 中如果带上自己的分析,可以被更快更高效的解决。
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,4 +0,0 @@
|
|||||||
/**
|
|
||||||
* 占位
|
|
||||||
*/
|
|
||||||
package cn.iocoder.yudao.server.framework.ui.core;
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1,4 @@
|
|||||||
|
phantomjs_cdnurl=http://cnpmjs.org/downloads
|
||||||
|
chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
|
||||||
|
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
|
||||||
|
registry=https://registry.npmmirror.com
|
||||||
@ -1,22 +1,96 @@
|
|||||||
import Cookies from 'js-cookie'
|
import {decrypt, encrypt} from "@/utils/jsencrypt";
|
||||||
|
|
||||||
const AccessTokenKey = 'ACCESS_TOKEN'
|
const AccessTokenKey = 'ACCESS_TOKEN'
|
||||||
const RefreshTokenKey = 'REFRESH_TOKEN'
|
const RefreshTokenKey = 'REFRESH_TOKEN'
|
||||||
|
|
||||||
|
// ========== Token 相关 ==========
|
||||||
|
|
||||||
export function getAccessToken() {
|
export function getAccessToken() {
|
||||||
return Cookies.get(AccessTokenKey)
|
return localStorage.getItem(AccessTokenKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getRefreshToken() {
|
export function getRefreshToken() {
|
||||||
return Cookies.get(RefreshTokenKey)
|
return localStorage.getItem(RefreshTokenKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setToken(token) {
|
export function setToken(token) {
|
||||||
Cookies.set(AccessTokenKey, token.accessToken)
|
localStorage.setItem(AccessTokenKey, token.accessToken)
|
||||||
Cookies.set(RefreshTokenKey, token.refreshToken)
|
localStorage.setItem(RefreshTokenKey, token.refreshToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function removeToken() {
|
export function removeToken() {
|
||||||
Cookies.remove(AccessTokenKey)
|
localStorage.removeItem(AccessTokenKey)
|
||||||
Cookies.remove(RefreshTokenKey)
|
localStorage.removeItem(RefreshTokenKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ========== 账号相关 ==========
|
||||||
|
|
||||||
|
const UsernameKey = 'USERNAME'
|
||||||
|
const PasswordKey = 'PASSWORD'
|
||||||
|
const RememberMeKey = 'REMEMBER_ME'
|
||||||
|
|
||||||
|
export function getUsername() {
|
||||||
|
return localStorage.getItem(UsernameKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setUsername(username) {
|
||||||
|
localStorage.setItem(UsernameKey, username)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removeUsername() {
|
||||||
|
localStorage.removeItem(UsernameKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getPassword() {
|
||||||
|
const password = localStorage.getItem(PasswordKey)
|
||||||
|
return password ? decrypt(password) : undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setPassword(password) {
|
||||||
|
localStorage.setItem(PasswordKey, encrypt(password))
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removePassword() {
|
||||||
|
localStorage.removeItem(PasswordKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getRememberMe() {
|
||||||
|
return localStorage.getItem(RememberMeKey) === 'true'
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setRememberMe(rememberMe) {
|
||||||
|
localStorage.setItem(RememberMeKey, rememberMe)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removeRememberMe() {
|
||||||
|
localStorage.removeItem(RememberMeKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ========== 租户相关 ==========
|
||||||
|
|
||||||
|
const TenantIdKey = 'TENANT_ID'
|
||||||
|
const TenantNameKey = 'TENANT_NAME'
|
||||||
|
|
||||||
|
export function getTenantName() {
|
||||||
|
return localStorage.getItem(TenantNameKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setTenantName(username) {
|
||||||
|
localStorage.setItem(TenantNameKey, username)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removeTenantName() {
|
||||||
|
localStorage.removeItem(TenantNameKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getTenantId() {
|
||||||
|
return localStorage.getItem(TenantIdKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setTenantId(username) {
|
||||||
|
localStorage.setItem(TenantIdKey, username)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removeTenantId() {
|
||||||
|
localStorage.removeItem(TenantIdKey)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue