no message
Former-commit-id: d9b50b6b08043b9b449c6392b0cab848c9a5fbc8 [formerly d9b50b6b08043b9b449c6392b0cab848c9a5fbc8 [formerly d9b50b6b08043b9b449c6392b0cab848c9a5fbc8 [formerly d9b50b6b08043b9b449c6392b0cab848c9a5fbc8 [formerly ad7a53e54d05dcb48700216515bef0dd32789511 [formerly bc2f59bfb15741447f8e7a83dc9806467eb09f1e]]]]] Former-commit-id: bd6947a1b20b754e419768ffee511158cfcb7354 Former-commit-id: 74cdfe5579829904c45b640440d085e8643ca20f Former-commit-id: 367dfc8824044e95586af9f192f173afceb82bf9 [formerly 3ea29514c4b5636d9db3822d1a7749f57f3f0204] Former-commit-id: e21a02ca87a955df333e56b0ac6b1f9844ca83ad Former-commit-id: ae1bc5a41a25ff2cea737d81db377566045b4bf5 Former-commit-id: 9d07c4e755a5e7543c0ec7363236db5233b892f9 Former-commit-id: b14b7c7596dc964a3353b29715abf06aea93f75e Former-commit-id: 71489b1e665291b16e24b6b6617d26d6db13efce
This commit is contained in:
@@ -110,7 +110,7 @@ util.checkUpdate = function (vm) {
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
let version = res.tag_name
|
let version = res.tag_name
|
||||||
const update = semver.lt(packJson.version, version)
|
const update = semver.lt(packJson.version, version)
|
||||||
if (update) {
|
if (vm.$env === 'development' && update) {
|
||||||
vm.$nextTick(() => {
|
vm.$nextTick(() => {
|
||||||
vm.$notify({
|
vm.$notify({
|
||||||
title: `D2Admin 新版本 ${res.name}`,
|
title: `D2Admin 新版本 ${res.name}`,
|
||||||
@@ -119,6 +119,7 @@ util.checkUpdate = function (vm) {
|
|||||||
message: `
|
message: `
|
||||||
<p>当前版本: ${packJson.version}</p>
|
<p>当前版本: ${packJson.version}</p>
|
||||||
<p>${dayjs(res.created_at).format('YYYY年M月D日')}更新 版本号: ${res.tag_name}</p>
|
<p>${dayjs(res.created_at).format('YYYY年M月D日')}更新 版本号: ${res.tag_name}</p>
|
||||||
|
<p style="color: #CCC;">此信息只在开发环境提示</p>
|
||||||
<p>
|
<p>
|
||||||
<a
|
<a
|
||||||
href="${res.html_url}"
|
href="${res.html_url}"
|
||||||
|
|||||||
@@ -93,9 +93,7 @@ new Vue({
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
// D2Admin 开发环境检查更新
|
// D2Admin 开发环境检查更新
|
||||||
if (this.$env === 'development') {
|
|
||||||
util.checkUpdate(this)
|
util.checkUpdate(this)
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user