Browse Source

修正内容发布

lipengtao 6 years ago
parent
commit
9d49cccd2a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/contentPub/publish.vue

+ 6 - 1
src/views/contentPub/publish.vue

@ -146,7 +146,7 @@
146 146
          if (response.success && response.data) {
147 147
            const info = response.data
148 148
            this.ruleForm2 = {
149
              catalog: info.catalog,
149
              catalog: info.catalog || '',
150 150
              cnt: info.cnt,
151 151
              title: info.title,
152 152
              source: info.source,
@ -228,6 +228,10 @@
228 228
        this.ruleForm2.professors = [value]
229 229
      },
230 230
      change(value) {
231
        if (!value) {
232
          this.$refs.ruleForm2.validateField('title')
233
          return
234
        }
231 235
        if (this.ruleForm2.title) {
232 236
          this.$refs.ruleForm2.validateField('title')
233 237
        }
@ -321,6 +325,7 @@
321 325
        }
322 326
      },
323 327
      submitForm(formName) {
328
        this.change()
324 329
        this.ruleForm2.cnt = this.$refs.ueBox.getUEContent()
325 330
        this.$refs[formName].validate((valid) => {
326 331
          if (valid) {