perf: 优化文章草稿功能

This commit is contained in:
jmal 2022-08-22 11:51:14 +08:00
parent b0b00af22b
commit e41a4ff7f8
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "jmal-cloud-view", "name": "jmal-cloud-view",
"version": "2.3.0", "version": "2.3.1",
"description": "jmalcloud", "description": "jmalcloud",
"author": "Jmal <zhushilun084@163.com>", "author": "Jmal <zhushilun084@163.com>",
"license": "MIT", "license": "MIT",

View File

@ -260,7 +260,8 @@ export default {
mark: this.$route.query.id mark: this.$route.query.id
}).then((res) => { }).then((res) => {
if (res.data.draft) { if (res.data.draft) {
this.file = res.data.draft this.file = JSON.parse(res.data.draft)
console.log('file', this.file)
if (res.data.release) { if (res.data.release) {
this.currentDarft = true this.currentDarft = true
} }

View File

@ -35,7 +35,6 @@ module.exports = {
lintOnSave: false, lintOnSave: false,
productionSourceMap: false, productionSourceMap: false,
devServer: { devServer: {
host: 'imac',
port: port, port: port,
open: false, open: false,
overlay: { overlay: {