yujialong 8 months ago
parent 6dee53b5d0
commit 06290c8e02
  1. 8
      src/pages/article/add/index.vue
  2. 8
      src/pages/column/page/overview.vue
  3. 2
      src/plugins/requests/index.js

@ -1366,11 +1366,11 @@ export default {
// //
nameChange () { nameChange () {
const { title, level, id } = this.form const { title, id } = this.form
if (title && title !== this.originalName) { if (title && title !== this.originalName) {
this.$post(this.api.checkIfTheTitleIsRepeat, Util.rsa({ this.$post(this.api.checkIfTheTitleIsRepeat, {
siteId: this.site.id, siteId: this.site.id,
title: encodeURI(title), title,
id: id || '' id: id || ''
})).then(res => { })).then(res => {
this.repeatMsg = '' this.repeatMsg = ''
@ -1576,7 +1576,7 @@ export default {
if (this.submiting) return false if (this.submiting) return false
const form = JSON.parse(JSON.stringify(this.form)) const form = JSON.parse(JSON.stringify(this.form))
if (!form.title) return Util.errorMsg('请填写标题') if (!form.title) return Util.errorMsg('请填写标题')
if (this.nameRepeat) return Util.errorMsg(this.repeatMsg) if (this.nameRepeat) return Util.errorMsg('该标题已重复!')
if (typeof form.fatherId === 'object') form.fatherId = form.fatherId[form.fatherId.length - 1] if (typeof form.fatherId === 'object') form.fatherId = form.fatherId[form.fatherId.length - 1]
const tId = form.articleTemplate const tId = form.articleTemplate
// //

@ -54,7 +54,8 @@
alt="" alt=""
class="pic"> class="pic">
<div class="texts"> <div class="texts">
<h6>{{ modules[2].form.title }}</h6> <div class="core-title"
v-html="modules[2].form.title"></div>
<div class="line"></div> <div class="line"></div>
<div class="text" <div class="text"
v-html="modules[2].form.des"></div> v-html="modules[2].form.des"></div>
@ -67,7 +68,8 @@
alt="" alt=""
class="pic"> class="pic">
<div class="texts"> <div class="texts">
<h6>{{ modules[3].form.title }}</h6> <div class="core-title"
v-html="modules[3].form.title"></div>
<div class="line"></div> <div class="line"></div>
<div class="text" <div class="text"
v-html="modules[3].form.des"></div> v-html="modules[3].form.des"></div>
@ -293,7 +295,7 @@ export default {
width: 500px; width: 500px;
color: #fff; color: #fff;
} }
h6 { .core-title {
font-size: 1.4rem; font-size: 1.4rem;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
} }

@ -41,7 +41,7 @@ service.interceptors.response.use(
}, 1000) }, 1000)
return Promise.reject(res) return Promise.reject(res)
} else { } else {
Util.errorMsg(res.msg); res.msg && Util.errorMsg(res.msg);
return Promise.reject(res) return Promise.reject(res)
} }
}, },

Loading…
Cancel
Save