mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
chore: add type define for casdoor module
This commit is contained in:
parent
37fa8b899f
commit
6dd0ec46a3
7 changed files with 568 additions and 605 deletions
|
@ -6,7 +6,6 @@ import { useUserStore } from '@/pinia'
|
|||
import auth from '@/api/auth'
|
||||
import install from '@/api/install'
|
||||
import SetLanguage from '@/components/SetLanguage/SetLanguage.vue'
|
||||
import http from '@/lib/http'
|
||||
import SwitchAppearance from '@/components/SwitchAppearance/SwitchAppearance.vue'
|
||||
|
||||
const thisYear = new Date().getFullYear()
|
||||
|
@ -77,11 +76,11 @@ watch(() => gettext.current, () => {
|
|||
const has_casdoor = ref(false)
|
||||
const casdoor_uri = ref('')
|
||||
|
||||
http.get('/casdoor_uri')
|
||||
.then(response => {
|
||||
if (response?.uri) {
|
||||
auth.get_casdoor_uri()
|
||||
.then(r => {
|
||||
if (r?.uri) {
|
||||
has_casdoor.value = true
|
||||
casdoor_uri.value = response.uri
|
||||
casdoor_uri.value = r.uri
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue