fix: http修改为https
This commit is contained in:
parent
e081967648
commit
583691266f
@ -2,9 +2,9 @@ import { defineStore } from "pinia";
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
export const useConfig = defineStore('config', () => {
|
export const useConfig = defineStore('config', () => {
|
||||||
const BASE_URL = ref<string>("http://service5.fenshenzhike.com:1218/api/");
|
const BASE_URL = ref<string>("https://service5.fenshenzhike.com:1218/api/");
|
||||||
// const BASE_URL = ref<string>("http://localhost:1218/api/");
|
// const BASE_URL = ref<string>("http://localhost:1218/api/");
|
||||||
return {
|
return {
|
||||||
BASE_URL
|
BASE_URL
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -26,7 +26,6 @@ async function loadUserInfo() {
|
|||||||
})
|
})
|
||||||
const res = await BussApi.profile(user.token!)
|
const res = await BussApi.profile(user.token!)
|
||||||
toast.close()
|
toast.close()
|
||||||
console.log(res)
|
|
||||||
user.userinfo = res
|
user.userinfo = res
|
||||||
userInfo.value = res
|
userInfo.value = res
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user