功能变化: 授权页面

This commit is contained in:
猿小天
2023-02-06 22:21:55 +08:00
parent 4046bd0d0c
commit ef4660c1f1
8 changed files with 285 additions and 45 deletions

View File

@@ -116,7 +116,7 @@ export default defineComponent({
};
const loginClick = async () => {
loginApi.login({ ...state.ruleForm, password: Md5.hashStr(state.ruleForm.password) }).then((ret: any) => {
Session.set('token', ret.data.access);
Session.set('token', ret.data.access);
Cookies.set('username', ret.data.name);
if (!themeConfig.value.isRequestRoutes) {
// 前端控制路由2、请注意执行顺序