|
@@ -7,14 +7,14 @@ const isNewVersion = () => {
|
|
|
const vueVersion = res.data.version
|
|
|
const message = res.data.message
|
|
|
const localVueVersion = localStorage.getItem('vueVersion-iscm')
|
|
|
- // 生产环境不比对版本号
|
|
|
+ // 开发环境不比对版本
|
|
|
const production = process.env.NODE_ENV === 'production'
|
|
|
if (localVueVersion && localVueVersion != vueVersion && production) {
|
|
|
- localStorage.setItem('vueVersion-iscm', vueVersion)
|
|
|
modal.info({
|
|
|
title: '提示',
|
|
|
content: message,
|
|
|
onOk () {
|
|
|
+ localStorage.setItem('vueVersion-iscm', vueVersion)
|
|
|
window.location.reload()
|
|
|
}
|
|
|
})
|