Commit d192af1c authored by zhangyanni's avatar zhangyanni

试一下自动刷新

parent b24df49e
NODE_ENV="production"
VUE_APP_URL="prod"
API_ROOT="/"
VUE_APP_UPDATED="2.1.01"
VUE_APP_UPDATED="3.0.01"
VUE_APP_UPLOAD_IMG="/base/upload/uploadPicture"
VUE_APP_UPLOAD_FILE="/base/upload/uploadFile"
VUE_APP_UPLOAD_LOGO="/base/upload/uploadLogo"
NODE_ENV="production"
VUE_APP_URL="dev"
API_ROOT="/"
VUE_APP_UPDATED="2.1.01"
VUE_APP_UPDATED="3.0.01"
VUE_APP_UPLOAD_IMG="/base/upload/uploadPicture"
VUE_APP_UPLOAD_FILE="/base/upload/uploadFile"
VUE_APP_UPLOAD_LOGO="/base/upload/uploadLogo"
export default { // 公共的js
install(_this, options) {
_this.prototype.version = process.env.VUE_APP_UPDATED;
}
}
\ No newline at end of file
......@@ -64,6 +64,14 @@
}
});
var version = this.version; //版本号(每次上线前需要更新下版本号)
console.log('当前版本号common.js:',version)
var vvv ='3.0.01'
console.log('当前版本号app.vue:',vvv)
if(vvv!=version){
this.version=vvv;
location.reload();
}
// var bodyTag;
// if(document.documentElement.scrollHeight <= document.documentElement.clientHeight) {
// bodyTag = document.getElementsByTagName('body')[0];
......
......@@ -41,8 +41,10 @@ import VideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
import 'vue-video-player/src/custom-theme.css'
import cancelRequest from './api/api'
import versionJs from '../public/js/version';
Vue.use(VideoPlayer)
Vue.use(VueCropper)
Vue.use(versionJs);
promise.polyfill();
Vue.prototype.$md5 = md5
Vue.prototype.wx = wx
......
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