This commit is contained in:
2026-08-25 19:56:47 +08:00
parent 248247ea37
commit 67ad2ed825
5 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -15,10 +15,11 @@
<script>
import { login as loginRequest } from '@/api/auth.js'
import { DEV_LOGIN } from '@/config/runtime.js'
import { session, restoreSession, signInWithTokens } from '@/stores/session.js'
import { requireOnline } from '@/utils/network.js'
export default {
data() { return { form: { userId: '', password: '' }, error: '', submitting: false } },
data() { return { form: { userId: DEV_LOGIN.username, password: DEV_LOGIN.password }, error: '', submitting: false } },
onLoad() { if (session.currentUser || restoreSession()) uni.reLaunch({ url: '/pages/home/home' }) },
methods: {
async login() {