mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
bug fix #27
This commit is contained in:
parent
7849ef76bc
commit
dd18011b2b
8 changed files with 18 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue