Commit adf8d700 authored by zhengke's avatar zhengke

no message

parent a22669e2
...@@ -85,7 +85,7 @@ const userLoginHandler = async ()=>{ ...@@ -85,7 +85,7 @@ const userLoginHandler = async ()=>{
ConfigIdStore.setConfigId(ConfigId) ConfigIdStore.setConfigId(ConfigId)
modelStore.setModel(model) modelStore.setModel(model)
try { try {
await userStore().setUserLoginAsync(userId,ConfigId) if(param.uid) await userStore().setUserLoginAsync(userId)
if(ConfigId>0&&model!=2) await GetTripConfig(ConfigId) if(ConfigId>0&&model!=2) await GetTripConfig(ConfigId)
} catch (error) {} } catch (error) {}
if(userId>0)isFinish.value=true if(userId>0)isFinish.value=true
......
...@@ -66,7 +66,7 @@ const getErrorCode2text = (response: AxiosResponse): string => { ...@@ -66,7 +66,7 @@ const getErrorCode2text = (response: AxiosResponse): string => {
* service.get<{data: string; code: number}>('/test').then(({data}) => { console.log(data.code) }) * service.get<{data: string; code: number}>('/test').then(({data}) => { console.log(data.code) })
*/ */
const service = Axios.create({ const service = Axios.create({
baseURL: process.env.VUE_APP_API_URL,//'http://192.168.10.214/api/common/post' baseURL: process.env.VUE_APP_API_URL,
timeout: 20000, timeout: 20000,
headers: { headers: {
'User-Type': 'bus', 'User-Type': 'bus',
......
...@@ -19,7 +19,7 @@ export const isPC = () => { ...@@ -19,7 +19,7 @@ export const isPC = () => {
export const query = (url?:string)=>{ export const query = (url?:string)=>{
url = url??location.href url = url??location.href
if(url.indexOf(process.env.VUE_APP_SHARE_URL)!=-1){ if(url.indexOf(process.env.VUE_APP_SHARE_URL)!=-1){
let str = process.env.VUE_APP_SHARE_URL.indexOf('127.0.0.1:8080')?url.split('8080/'):url.split('vitto.com/') let str = process.env.VUE_APP_SHARE_URL.indexOf('127.0.0.1:8080')?url.split('8080/'):url.split('p.viitto.com/')
let json = { let json = {
SalesTripId: '' SalesTripId: ''
} as any } as any
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment