车船定位

master
xy 10 months ago
parent fcfa2a85d3
commit 5f2c96aabc

@ -10,4 +10,5 @@ VUE_APP_OUT_GDZC = http://hjjc-szemcgdzc.ali251.langye.net/admin
VUE_APP_OUT_OLD = http://hjjc-szemcold-test.ali251.langye.net
VUE_APP_OUT_URL = http://192.168.60.18:2021
VUE_APP_OUT_GOODS = http://hjjc-szemc_goods-test.ali251.langye.net
VUE_APP_OUT_GPS=http://hjjc-gps.ali251.langye.net
VUE_APP_OLD_OA = http://192.168.0.66:16667

@ -13,4 +13,4 @@ VUE_APP_OUT_OLD = http://hjjc-szemcold-test.ali251.langye.net
VUE_APP_OUT_URL = http://192.168.60.18:2021
VUE_APP_OUT_GOODS = http://hjjc-szemc_goods-test.ali251.langye.net
VUE_APP_OLD_OA = http://192.168.0.66:16667
VUE_APP_OUT_GPS=http://hjjc-gps.ali251.langye.net

@ -74,6 +74,20 @@
<!-- >-->
<!-- </div>-->
<!-- </template>-->
<template v-else-if="$route.path === '/gps'">
<div
style="width: 100%; height: 100%; padding-top: 50px; overflow-x: hidden"
>
<iframe ref="gpsIframe" style="width: 100%;" :src="gpsUrl">你的浏览器不支持该iframe</iframe>
</div>
</template>
<template v-else-if="$route.path === '/old'">
<div
style="width: 100%; height: 100%; padding-top: 50px; overflow-x: hidden"
>
<iframe ref="oldIframe" style="width: 100%;" :src="oldUrl">你的浏览器不支持该iframe</iframe>
</div>
</template>
<template v-else-if="$route.path === '/oaOld'">
<div
style="width: 100%; height: 100%; padding-top: 50px; overflow-x: hidden"
@ -132,7 +146,8 @@ export default {
gdzcUrl: `${process.env.VUE_APP_OUT_GDZC}?auth_token=${this.$store.getters.oa_token}`,
oldUrl: `${process.env.VUE_APP_OUT_OLD}/login/oss_login?auth_token=${this.$store.getters.oa_token}`,
goodsUrl: `${process.env.VUE_APP_OUT_GOODS}/admin/oss-login?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}`,
oldOaUrl: `${process.env.VUE_APP_OLD_OA}/login/oss_login?auth_token=${this.$store.getters.oa_token}`
oldOaUrl: `${process.env.VUE_APP_OLD_OA}/login/oss_login?auth_token=${this.$store.getters.oa_token}`,
gpsUrl: `${process.env.VUE_APP_OUT_GPS}?auth_token=${this.$store.getters.oa_token}`
};
},
computed: {

@ -55,10 +55,31 @@ Vue.prototype.$integrateData = (target,value) => {
}
}
}
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
import { setToken,getToken } from "@/utils/auth"
if (window.__POWERED_BY_WUJIE__) {
let instance;
window.__WUJIE_MOUNT = () => {
instance = new Vue({
router,
store,
render: h => h(App)
}).$mount("#app")
setToken(window.$wujie?.props?.auth_token)
router.push('/')
};
window.__WUJIE_UNMOUNT = () => {
instance.$destroy();
};
} else {
new Vue({
router,
store,
render: h => h(App)
}).$mount("#app")
}
// new Vue({
// el: '#app',
// router,
// store,
// render: h => h(App)
// })

@ -48,6 +48,7 @@ module.exports = {
errors: true
},
//before: require('./mock/mock-server.js')
headers: { "Access-Control-Allow-Origin": "*" },
proxy: {
'^/old':{
target: process.env.VUE_APP_OUT_OLD,

Loading…
Cancel
Save