diff --git a/src/views/sheet/SheetList.vue b/src/views/sheet/SheetList.vue
index b55d7c2f7..84350cf29 100644
--- a/src/views/sheet/SheetList.vue
+++ b/src/views/sheet/SheetList.vue
@@ -497,7 +497,7 @@ const internalColumns = [
dataIndex: 'title'
},
{
- title: '访问路径',
+ title: '访问地址',
dataIndex: 'url'
},
{
diff --git a/src/views/system/About.vue b/src/views/system/About.vue
index 1bc160518..db243700c 100644
--- a/src/views/system/About.vue
+++ b/src/views/system/About.vue
@@ -20,7 +20,7 @@
-
-
+ -->
- Server 版本:{{ environments.version }}
@@ -132,20 +132,14 @@ export default {
contributions: 0
}
],
- contributorsLoading: true,
- updating: false
+ contributorsLoading: true
}
},
created() {
this.getEnvironments()
this.fetchContributors()
this.checkServerUpdate()
- this.checkAdminUpdate()
- },
- computed: {
- updateText() {
- return this.updating ? '更新中...' : '更新'
- }
+ // this.checkAdminUpdate()
},
methods: {
getEnvironments() {
@@ -153,20 +147,20 @@ export default {
this.environments = response.data.data
})
},
- confirmUpdate() {
- this.updating = true
- adminApi
- .updateAdminAssets()
- .then(response => {
- this.$notification.success({
- message: '更新成功',
- description: '请刷新后体验最新版本!'
- })
- })
- .finally(() => {
- this.updating = false
- })
- },
+ // confirmUpdate() {
+ // this.updating = true
+ // adminApi
+ // .updateAdminAssets()
+ // .then(response => {
+ // this.$notification.success({
+ // message: '更新成功',
+ // description: '请刷新后体验最新版本!'
+ // })
+ // })
+ // .finally(() => {
+ // this.updating = false
+ // })
+ // },
handleCopyEnvironments() {
const text = `Server 版本:${this.environments.version}
Admin 版本:${this.adminVersion}
@@ -189,7 +183,6 @@ User Agent:${navigator.userAgent}`
axios
.get('https://api.github.com/repos/halo-dev/halo/contributors')
.then(response => {
- console.log(response.data)
_this.contributors = response.data
this.contributorsLoading = false
})
@@ -240,48 +233,48 @@ User Agent:${navigator.userAgent}`
console.error('Check update fail', error)
})
},
- async checkAdminUpdate() {
- const _this = this
+ // async checkAdminUpdate() {
+ // const _this = this
- axios
- .get('https://api.github.com/repos/halo-dev/halo-admin/releases/latest')
- .then(response => {
- const data = response.data
- if (data.draft || data.prerelease) {
- return
- }
- const current = _this.calculateIntValue(_this.adminVersion)
- const latest = _this.calculateIntValue(data.name)
- if (current >= latest) {
- return
- }
- const title = '新版本提醒'
- const content = '检测到 Admin 新版本:' + data.name + ',点击下方按钮可直接更新为最新版本。'
- this.$notification.open({
- message: title,
- description: content,
- icon: ,
- btn: h => {
- return h(
- 'a-button',
- {
- props: {
- type: 'primary',
- size: 'small'
- },
- on: {
- click: () => _this.confirmUpdate()
- }
- },
- '点击更新'
- )
- }
- })
- })
- .catch(function(error) {
- console.error('Check update fail', error)
- })
- },
+ // axios
+ // .get('https://api.github.com/repos/halo-dev/halo-admin/releases/latest')
+ // .then(response => {
+ // const data = response.data
+ // if (data.draft || data.prerelease) {
+ // return
+ // }
+ // const current = _this.calculateIntValue(_this.adminVersion)
+ // const latest = _this.calculateIntValue(data.name)
+ // if (current >= latest) {
+ // return
+ // }
+ // const title = '新版本提醒'
+ // const content = '检测到 Admin 新版本:' + data.name + ',点击下方按钮可直接更新为最新版本。'
+ // this.$notification.open({
+ // message: title,
+ // description: content,
+ // icon: ,
+ // btn: h => {
+ // return h(
+ // 'a-button',
+ // {
+ // props: {
+ // type: 'primary',
+ // size: 'small'
+ // },
+ // on: {
+ // click: () => _this.confirmUpdate()
+ // }
+ // },
+ // '点击更新'
+ // )
+ // }
+ // })
+ // })
+ // .catch(function(error) {
+ // console.error('Check update fail', error)
+ // })
+ // },
calculateIntValue(version) {
version = version.replace(/v/g, '')
const ss = version.split('.')