WANG 6 年之前
父节点
当前提交
20b2e2697b
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      src/components/ckeditor.vue

+ 1 - 6
src/components/ckeditor.vue

@@ -59,12 +59,7 @@ export default {
     }
   },
   mounted() {
-    if (this.width) {
-      this.divStyle = "width:" + this.width + ";";
-    } else {
-      this.divStyle = "width:500px";
-    }
-
+    this.divStyle = "width:" + this.width + ";";
     this.divStyle = this.divStyle + "margin-top:-15px;";
 
     let config = {