0.0.1版本

This commit is contained in:
2024-07-22 18:57:12 +08:00
parent e071bee532
commit bf0b0f6080
49 changed files with 868 additions and 499 deletions

View File

@@ -89,8 +89,8 @@ const router = useRouter()
const route = useRoute()
const userStore = useUserStore()
// 绑定登录form的数据
const form = reactive({ username: "superAdmin", password: "admin123", code: "" })
// const form = reactive({ username: "", password: "", code: "" })
// const form = reactive({ username: "superAdmin", password: "admin123", code: "" })
const form = reactive({ username: "", password: "", code: "" })
// 获取验证码dom && arco表单loading
const Verify = ref(null)
const loading = ref(null)
@@ -108,7 +108,7 @@ const handleSubmit = async ({ values, errors }) => {
if (login_res) {
const { redirect, ...otherQuery } = router.currentRoute.value.query
router.push({
name: redirect || "Workplace",
name: redirect || "workplace",
query: {
...otherQuery // 将退出时的查询参数放入,这样就不会错误
}