Commit af6bf88b authored by 李苏's avatar 李苏 💬

优化卡顿

parent afb1922b
...@@ -28,7 +28,6 @@ router.beforeEach((to, from, next) => { ...@@ -28,7 +28,6 @@ router.beforeEach((to, from, next) => {
}else{ }else{
next({ path: '/pages/login/login'}) next({ path: '/pages/login/login'})
} }
next()
} }
}) })
// 全局路由后置守卫 // 全局路由后置守卫
......
...@@ -9,7 +9,7 @@ try { ...@@ -9,7 +9,7 @@ try {
} }
let newUrl = 'http://'+fwq let newUrl = 'http://'+fwq
if (process.env.NODE_ENV == 'development') { if (process.env.NODE_ENV == 'development') {
BASE_URL = "http://10.2.175.100:8080/xgwcs" BASE_URL = "http://192.168.30.16:9080/xgwcs"
} else { } else {
BASE_URL = "http://10.2.175.100:8080/xgwcs" BASE_URL = "http://10.2.175.100:8080/xgwcs"
......
...@@ -45,6 +45,7 @@ export default function appUpdate(loginApp) { ...@@ -45,6 +45,7 @@ export default function appUpdate(loginApp) {
apptype: appType, apptype: appType,
appid: '__UNI__79C58F0', appid: '__UNI__79C58F0',
}).then((res) => { }).then((res) => {
console.log(res,'res')
if (res) { if (res) {
plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) { plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
let client_version = parseInt(wgtinfo.version); let client_version = parseInt(wgtinfo.version);
...@@ -56,6 +57,7 @@ export default function appUpdate(loginApp) { ...@@ -56,6 +57,7 @@ export default function appUpdate(loginApp) {
var flag_hot = true; var flag_hot = true;
console.log(verC) console.log(verC)
if (verC >=0) { if (verC >=0) {
console.log('无更新')
loginApp.showProcess('无版本更新,欢迎使用', 100) loginApp.showProcess('无版本更新,欢迎使用', 100)
uni.hideLoading() uni.hideLoading()
loginApp.$Router.replaceAll({ loginApp.$Router.replaceAll({
...@@ -156,9 +158,10 @@ export default function appUpdate(loginApp) { ...@@ -156,9 +158,10 @@ export default function appUpdate(loginApp) {
}) })
}).finally(() => { }).finally(() => {
}) })
} catch (e) { } catch (e) {
console.log(e,'err')
uni.hideLoading() uni.hideLoading()
if(!hasLogin){ if(!hasLogin){
loginApp.$Router.replaceAll({ loginApp.$Router.replaceAll({
...@@ -185,7 +188,7 @@ export default function appUpdate(loginApp) { ...@@ -185,7 +188,7 @@ export default function appUpdate(loginApp) {
let verC = versionStringCompare(wgtinfo.version, res.data.version + ''); let verC = versionStringCompare(wgtinfo.version, res.data.version + '');
var flag_hot = true; var flag_hot = true;
if (verC >=0) { if (verC >=0) {
loginApp.showProcess('无版本更新,欢迎使用金属科技安全云', 100) loginApp.showProcess('无版本更新,欢迎使用', 100)
// if(!hasLogin){ // if(!hasLogin){
// } // }
......
...@@ -549,15 +549,15 @@ ...@@ -549,15 +549,15 @@
}, },
onLoad(e) { onLoad(e) {
this.f5Gw() this.f5Gw()
eventBus.$on('sendInfo', function(data) { /* 配盘单号无法选中,暂时取消 */
// this.wlinfor = data.wlinfor // eventBus.$on('sendInfo', function(data) {
if(data.type=='xzppdh'){ // if(data.type=='xzppdh'){
this.ppdInfo.djid=data.data.djid // this.ppdInfo.djid=data.data.djid
this.ppdInfo.pptzdid=data.data.id // this.ppdInfo.pptzdid=data.data.id
} // }
console.log(data,'bySendInfo') // console.log(data,'bySendInfo')
}.bind(this)); // }.bind(this));
if (!e.query) { if (!e.query) {
return return
} }
let einfor = JSON.parse(e.query) let einfor = JSON.parse(e.query)
......
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