fix: http修改为https

This commit is contained in:
Hvemi_han 2025-01-20 15:35:27 +08:00
parent e081967648
commit 583691266f
2 changed files with 2 additions and 3 deletions

View File

@ -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
} }
}) }) 

View File

@ -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) {