mirror of
https://github.com/ZeroCatDev/ClassworksKVAdmin.git
synced 2026-02-04 07:23:11 +00:00
fix: 更新应用信息 API 地址,修正为新的服务域名
This commit is contained in:
parent
165e7560e0
commit
0432bf0df0
@ -55,7 +55,7 @@ const renderedReadme = computed(() => {
|
|||||||
// 获取应用信息
|
// 获取应用信息
|
||||||
const fetchApp = async () => {
|
const fetchApp = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`https://zerocat-api.houlangs.com/oauth/applications/${props.appId}`);
|
const response = await fetch(`https://zerocat-api.houlang.cloud/oauth/applications/${props.appId}`);
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Failed to fetch app info: ${response.status}`);
|
throw new Error(`Failed to fetch app info: ${response.status}`);
|
||||||
|
|||||||
@ -123,7 +123,7 @@ const loadTokens = async () => {
|
|||||||
for (const token of tokens.value) {
|
for (const token of tokens.value) {
|
||||||
if (!appInfoCache.value[token.appId]) {
|
if (!appInfoCache.value[token.appId]) {
|
||||||
try {
|
try {
|
||||||
const appResponse = await fetch(`https://zerocat-api.houlangs.com/oauth/applications/${token.appId}`)
|
const appResponse = await fetch(`https://zerocat-api.houlang.cloud/oauth/applications/${token.appId}`)
|
||||||
if (appResponse.ok) {
|
if (appResponse.ok) {
|
||||||
appInfoCache.value[token.appId] = await appResponse.json()
|
appInfoCache.value[token.appId] = await appResponse.json()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user