This commit is contained in:
0xJacky 2022-08-04 20:44:18 +08:00
parent 7849ef76bc
commit dd18011b2b
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
8 changed files with 18 additions and 9 deletions

View file

@ -9,10 +9,17 @@ import {useRoute, useRouter} from 'vue-router'
import gettext from '@/gettext'
import {Form, message} from 'ant-design-vue'
import auth from '@/api/auth'
import install from '@/api/install'
const route = useRoute()
const router = useRouter()
install.get_lock().then(async (r: { lock: boolean }) => {
if (!r.lock) {
await router.push('/install')
}
})
const {$gettext} = gettext
const loading = ref(false)