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",
"version": "2.3.0",
"version": "2.3.1",
"description": "jmalcloud",
"author": "Jmal <zhushilun084@163.com>",
"license": "MIT",

View File

@ -260,7 +260,8 @@ export default {
mark: this.$route.query.id
}).then((res) => {
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) {
this.currentDarft = true
}

View File

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