新功能: 角色授权页面,获取菜单

This commit is contained in:
猿小天
2023-02-03 22:03:52 +08:00
parent 896398ac03
commit c34ba139d5
3 changed files with 282 additions and 4 deletions

View File

@@ -103,14 +103,14 @@ export default defineComponent({
const getCaptcha = async () => {
loginApi.getCaptcha().then((ret: any) => {
state.ruleForm.captchaImgBase = ret.image_base;
state.ruleForm.captchaKey = ret.key;
state.ruleForm.captchaImgBase = ret.data.image_base;
state.ruleForm.captchaKey = ret.data.key;
});
};
const refreshCaptcha = async () => {
loginApi.getCaptcha().then((ret: any) => {
state.ruleForm.captchaImgBase = ret.image_base;
state.ruleForm.captchaKey = ret.key;
state.ruleForm.captchaImgBase = ret.data.image_base;
state.ruleForm.captchaKey = ret.data.key;
});
};
const loginClick = async () => {