heyang преди 2 години
родител
ревизия
c2975acdf9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/hazardManagement/hazard/addLaboratory.vue

+ 1 - 1
src/views/hazardManagement/hazard/addLaboratory.vue

@@ -178,7 +178,7 @@ export default {
   methods: {
   methods: {
     //预览
     //预览
     previewButton(){
     previewButton(){
-
+      this.$set(this.form,'content',this.$refs.UEditor.text);
       this.$refs["form"].validate(valid => {
       this.$refs["form"].validate(valid => {
         if (valid) {
         if (valid) {
           this.$set(this,'text',this.$refs.UEditor.text);
           this.$set(this,'text',this.$refs.UEditor.text);