mirror of https://github.com/halo-dev/halo
style: replace console.log() to this.$log.
parent
ffa4dfb76e
commit
d5f825ba3d
|
@ -79,7 +79,7 @@ export default {
|
|||
const subItem = [h('span', { slot: 'title' }, [this.renderIcon(h, menu.meta.icon), h('span', [menu.meta.title])])]
|
||||
const itemArr = []
|
||||
const pIndex_ = pIndex + '_' + index
|
||||
console.log('menu', menu)
|
||||
this.$log.debug('menu', menu)
|
||||
if (!menu.hideChildrenInMenu) {
|
||||
menu.children.forEach(function(item, i) {
|
||||
itemArr.push(this2_.renderItem(h, item, pIndex_, i))
|
||||
|
|
|
@ -120,7 +120,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleFilePondInit() {
|
||||
console.log('FilePond has initialized')
|
||||
this.$log.debug('FilePond has initialized')
|
||||
},
|
||||
handleClearFileList() {
|
||||
this.$refs.pond.removeFiles()
|
||||
|
|
|
@ -2,7 +2,7 @@ export function actionToObject(json) {
|
|||
try {
|
||||
return JSON.parse(json)
|
||||
} catch (e) {
|
||||
console.log('err', e.message)
|
||||
this.$log.debug('err', e.message)
|
||||
}
|
||||
return []
|
||||
}
|
|
@ -269,11 +269,11 @@ export default {
|
|||
const text = `${encodeURI(this.attachment.path)}`
|
||||
this.$copyText(text)
|
||||
.then(message => {
|
||||
console.log('copy', message)
|
||||
this.$log.debug('copy', message)
|
||||
this.$message.success('复制成功!')
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('copy.err', err)
|
||||
this.$log.debug('copy.err', err)
|
||||
this.$message.error('复制失败!')
|
||||
})
|
||||
},
|
||||
|
@ -281,11 +281,11 @@ export default {
|
|||
const text = `![${this.attachment.name}](${encodeURI(this.attachment.path)})`
|
||||
this.$copyText(text)
|
||||
.then(message => {
|
||||
console.log('copy', message)
|
||||
this.$log.debug('copy', message)
|
||||
this.$message.success('复制成功!')
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('copy.err', err)
|
||||
this.$log.debug('copy.err', err)
|
||||
this.$message.error('复制失败!')
|
||||
})
|
||||
},
|
||||
|
|
|
@ -249,11 +249,11 @@ Admin 版本:${this.adminVersion}
|
|||
UA 信息:${navigator.userAgent}`
|
||||
this.$copyText(text)
|
||||
.then(message => {
|
||||
console.log('copy', message)
|
||||
this.$log.debug('copy', message)
|
||||
this.$message.success('复制成功!')
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('copy.err', err)
|
||||
this.$log.debug('copy.err', err)
|
||||
this.$message.error('复制失败!')
|
||||
})
|
||||
},
|
||||
|
|
|
@ -247,8 +247,8 @@ export default {
|
|||
handleNextStep(e) {
|
||||
e.preventDefault()
|
||||
this.bloggerForm.validateFields((error, values) => {
|
||||
console.log('error', error)
|
||||
console.log('Received values of form: ', values)
|
||||
this.$log.debug('error', error)
|
||||
this.$log.debug('Received values of form: ', values)
|
||||
if (error != null) {
|
||||
} else {
|
||||
this.stepCurrent++
|
||||
|
|
|
@ -117,7 +117,7 @@ export default {
|
|||
handleChange(info) {
|
||||
const status = info.file.status
|
||||
if (status !== 'uploading') {
|
||||
console.log(info.file, info.fileList)
|
||||
this.$log.debug(info.file, info.fileList)
|
||||
}
|
||||
if (status === 'done') {
|
||||
this.$message.success(`${info.file.name} 导入成功!`)
|
||||
|
|
Loading…
Reference in New Issue