style: replace console.log() to this.$log.

pull/62/head
ruibaby 2020-01-06 20:32:33 +08:00
parent 951107192c
commit 12970716c0
7 changed files with 13 additions and 13 deletions

View File

@ -79,7 +79,7 @@ export default {
const subItem = [h('span', { slot: 'title' }, [this.renderIcon(h, menu.meta.icon), h('span', [menu.meta.title])])] const subItem = [h('span', { slot: 'title' }, [this.renderIcon(h, menu.meta.icon), h('span', [menu.meta.title])])]
const itemArr = [] const itemArr = []
const pIndex_ = pIndex + '_' + index const pIndex_ = pIndex + '_' + index
console.log('menu', menu) this.$log.debug('menu', menu)
if (!menu.hideChildrenInMenu) { if (!menu.hideChildrenInMenu) {
menu.children.forEach(function(item, i) { menu.children.forEach(function(item, i) {
itemArr.push(this2_.renderItem(h, item, pIndex_, i)) itemArr.push(this2_.renderItem(h, item, pIndex_, i))

View File

@ -120,7 +120,7 @@ export default {
}, },
methods: { methods: {
handleFilePondInit() { handleFilePondInit() {
console.log('FilePond has initialized') this.$log.debug('FilePond has initialized')
}, },
handleClearFileList() { handleClearFileList() {
this.$refs.pond.removeFiles() this.$refs.pond.removeFiles()

View File

@ -2,7 +2,7 @@ export function actionToObject(json) {
try { try {
return JSON.parse(json) return JSON.parse(json)
} catch (e) { } catch (e) {
console.log('err', e.message) this.$log.debug('err', e.message)
} }
return [] return []
} }

View File

@ -269,11 +269,11 @@ export default {
const text = `${encodeURI(this.attachment.path)}` const text = `${encodeURI(this.attachment.path)}`
this.$copyText(text) this.$copyText(text)
.then(message => { .then(message => {
console.log('copy', message) this.$log.debug('copy', message)
this.$message.success('复制成功!') this.$message.success('复制成功!')
}) })
.catch(err => { .catch(err => {
console.log('copy.err', err) this.$log.debug('copy.err', err)
this.$message.error('复制失败!') this.$message.error('复制失败!')
}) })
}, },
@ -281,11 +281,11 @@ export default {
const text = `![${this.attachment.name}](${encodeURI(this.attachment.path)})` const text = `![${this.attachment.name}](${encodeURI(this.attachment.path)})`
this.$copyText(text) this.$copyText(text)
.then(message => { .then(message => {
console.log('copy', message) this.$log.debug('copy', message)
this.$message.success('复制成功!') this.$message.success('复制成功!')
}) })
.catch(err => { .catch(err => {
console.log('copy.err', err) this.$log.debug('copy.err', err)
this.$message.error('复制失败!') this.$message.error('复制失败!')
}) })
}, },

View File

@ -249,11 +249,11 @@ Admin 版本:${this.adminVersion}
UA 信息${navigator.userAgent}` UA 信息${navigator.userAgent}`
this.$copyText(text) this.$copyText(text)
.then(message => { .then(message => {
console.log('copy', message) this.$log.debug('copy', message)
this.$message.success('复制成功!') this.$message.success('复制成功!')
}) })
.catch(err => { .catch(err => {
console.log('copy.err', err) this.$log.debug('copy.err', err)
this.$message.error('复制失败!') this.$message.error('复制失败!')
}) })
}, },

View File

@ -247,8 +247,8 @@ export default {
handleNextStep(e) { handleNextStep(e) {
e.preventDefault() e.preventDefault()
this.bloggerForm.validateFields((error, values) => { this.bloggerForm.validateFields((error, values) => {
console.log('error', error) this.$log.debug('error', error)
console.log('Received values of form: ', values) this.$log.debug('Received values of form: ', values)
if (error != null) { if (error != null) {
} else { } else {
this.stepCurrent++ this.stepCurrent++

View File

@ -117,7 +117,7 @@ export default {
handleChange(info) { handleChange(info) {
const status = info.file.status const status = info.file.status
if (status !== 'uploading') { if (status !== 'uploading') {
console.log(info.file, info.fileList) this.$log.debug(info.file, info.fileList)
} }
if (status === 'done') { if (status === 'done') {
this.$message.success(`${info.file.name} 导入成功!`) this.$message.success(`${info.file.name} 导入成功!`)