src/pages/login/index.vue
@@ -22,8 +22,8 @@ } from "@/router"; const userStore = useUserStore(); const loginForm = ref({ username: "shuishen", password: "Dashabi...." username: "zhx", password: "123456" }) const inputStyle = computed(() => { const style = {}; @@ -58,7 +58,7 @@ ).then(res => { userStore.setUserInfo(res.data) uni.switchTab({ url: '/' url: '/pages/user/index' }) }) }