Commit 422ba4c8 authored by zhengke's avatar zhengke

调整 分享 参数

parent adf8d700
......@@ -19,11 +19,10 @@ export const isPC = () => {
export const query = (url?:string)=>{
url = url??location.href
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('p.viitto.com/')
let str = url.substr(url.indexOf('?') + 1)
let json = {
SalesTripId: ''
SalesTripId: str.slice(2)
} as any
json.SalesTripId = str[1]
return json
}else{
let str = url.substr(url.indexOf('?') + 1)
......
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