mirror of https://github.com/halo-dev/halo-admin
Fix syntax error
parent
39137738a9
commit
a6b3f57623
|
@ -76,14 +76,14 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
ResourcesData = function() {}
|
this.ResourcesData = function() {}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 下载
|
// 下载
|
||||||
downResources(type, id) {
|
downResources(type, id) {
|
||||||
if (type == 'ResourcesData') {
|
if (type === 'ResourcesData') {
|
||||||
alert('资源文件下载' + id)
|
alert('资源文件下载' + id)
|
||||||
} else if (type == 'DataBaseData') {
|
} else if (type === 'DataBaseData') {
|
||||||
alert('数据库文件下载' + id)
|
alert('数据库文件下载' + id)
|
||||||
} else {
|
} else {
|
||||||
alert('文件下载' + id)
|
alert('文件下载' + id)
|
||||||
|
@ -91,9 +91,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 发送到邮箱
|
// 发送到邮箱
|
||||||
sendResources(type, id) {
|
sendResources(type, id) {
|
||||||
if (type == 'ResourcesData') {
|
if (type === 'ResourcesData') {
|
||||||
alert('资源文件发送到邮箱' + id)
|
alert('资源文件发送到邮箱' + id)
|
||||||
} else if (type == 'DataBaseData') {
|
} else if (type === 'DataBaseData') {
|
||||||
alert('数据库文件发送到邮箱' + id)
|
alert('数据库文件发送到邮箱' + id)
|
||||||
} else {
|
} else {
|
||||||
alert('文件发送到邮箱' + id)
|
alert('文件发送到邮箱' + id)
|
||||||
|
@ -101,9 +101,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
deleteResources(type, id) {
|
deleteResources(type, id) {
|
||||||
if (type == 'ResourcesData') {
|
if (type === 'ResourcesData') {
|
||||||
alert('资源文件删除' + id)
|
alert('资源文件删除' + id)
|
||||||
} else if (type == 'DataBaseData') {
|
} else if (type === 'DataBaseData') {
|
||||||
alert('数据库文件删除' + id)
|
alert('数据库文件删除' + id)
|
||||||
} else {
|
} else {
|
||||||
alert('文件删除' + id)
|
alert('文件删除' + id)
|
||||||
|
@ -111,9 +111,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 备份
|
// 备份
|
||||||
backupData(type) {
|
backupData(type) {
|
||||||
if (type == 'ResourcesData') {
|
if (type === 'ResourcesData') {
|
||||||
alert('资源文件备份')
|
alert('资源文件备份')
|
||||||
} else if (type == 'DataBaseData') {
|
} else if (type === 'DataBaseData') {
|
||||||
alert('数据库文件备份')
|
alert('数据库文件备份')
|
||||||
} else {
|
} else {
|
||||||
alert('文件备份')
|
alert('文件备份')
|
||||||
|
@ -151,4 +151,4 @@ export default {
|
||||||
border-color: #fff;
|
border-color: #fff;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue