12312
This commit is contained in:
parent
5d74c80121
commit
da25227fff
2
env/.env.test
vendored
2
env/.env.test
vendored
@ -2,4 +2,4 @@
|
||||
NODE_ENV = 'test'
|
||||
# 是否去除console 和 debugger
|
||||
VITE_DELETE_CONSOLE = false
|
||||
VITE_BASEURL = 'https://kid-art-test.szjixun.cn'
|
||||
VITE_BASEURL = 'http://kid-art-test.szjixun.cn'
|
||||
|
@ -16,10 +16,11 @@ const request = new Request({
|
||||
if (config.isFormData) {
|
||||
config.headers['Content-Type'] = 'multipart/form-data';
|
||||
config.headers['Authorization'] = token
|
||||
config.headers['Authorization2'] ='1234567'
|
||||
config.headers['tokenC'] ='1234567'
|
||||
} else {
|
||||
config.headers['Authorization'] = token
|
||||
config.headers['Authorization2'] ='1234567'
|
||||
console.log('JSON.parse(localStorage.getItem(\'voteToken\'))?.authorization',JSON.parse(localStorage.getItem('voteToken'))?.authorization)
|
||||
config.headers['tokenC'] =JSON.parse(localStorage.getItem('voteToken'))?.authorization
|
||||
}
|
||||
return config;
|
||||
},
|
||||
|
@ -8,8 +8,7 @@ const router = useRouter()
|
||||
const initLoad=async ()=>{
|
||||
await getVoteToken()
|
||||
if (route.query.state && route.query.code){
|
||||
const res= await viewOpenId({code: Array.isArray(route.query.code)?route.query.code[0]:route.query.code, state: Array.isArray(route.query.state)?route.query.state[0]:route.query.state})
|
||||
console.log('openid',res)
|
||||
const res= await viewOpenId({code: Array.isArray(route.query.code)?route.query.code.at(-1):route.query.code, state: Array.isArray(route.query.state)?route.query.state.at(-1):route.query.state})
|
||||
if (res.status===0){
|
||||
|
||||
}
|
||||
@ -22,7 +21,6 @@ if (route.query.uid){
|
||||
getWorkInfo()
|
||||
}
|
||||
const isW=isWechat()
|
||||
console.log('isW',isW)
|
||||
voteStatus().then((res)=>{
|
||||
setTimeout(() => {
|
||||
|
||||
@ -40,7 +38,7 @@ if(res.status===401){
|
||||
window.location.href = `https://appointteam.szjixun.cn/api/appointment/wx?notifyUrl=${encodeURIComponent(window.location.href)}`
|
||||
}*/
|
||||
|
||||
/*cWxApi()*/
|
||||
/* cWxApi()*/
|
||||
initLoad()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user