更新2.1.2版本,优化部门、角色权限,增加上下级关系;增加登录、系统、短信日志;优化省市区编码

This commit is contained in:
孟帅
2023-01-25 11:49:21 +08:00
parent 11fad0132d
commit 93e0fe7250
190 changed files with 35896 additions and 7208 deletions

View File

@@ -93,6 +93,7 @@
import { useBattery } from '@/hooks/useBattery';
import { useLockscreenStore } from '@/store/modules/lockscreen';
import { useUserStore } from '@/store/modules/user';
import { aesEcb } from '@/utils/encrypt';
export default defineComponent({
name: 'Lockscreen',
@@ -140,7 +141,8 @@
}
const params = {
isLock: true,
...state.loginParams,
username: state.loginParams.username,
password: aesEcb.encrypt(state.loginParams.password),
};
state.loginLoading = true;
const { code, message } = await userStore.login(params);

View File

@@ -89,6 +89,7 @@
import { useGlobSetting } from '@/hooks/setting';
import { isJsonString, isNullOrUnDef } from '@/utils/is';
import { getFileExt } from '@/utils/urlUtils';
import { errorImg } from '@/utils/hotgo';
const globSetting = useGlobSetting();
export default defineComponent({
@@ -258,13 +259,6 @@
}
}
/**图片加载失败显示自定义默认图片(缺省图)*/
function errorImg(e) {
e.srcElement.src = '/onerror.png';
//这一句没用,如果默认图片的路径错了还是会一直闪屏,在方法的前面加个.once只让它执行一次也没用
e.srcElement.onerror = null; //防止闪图
}
onMounted(async () => {
setTimeout(function () {
if (props.maxNumber === 1) {