yujialong 3 months ago
parent e6eb09556c
commit fedf73ec61
  1. 2
      src/components/modules/content.vue
  2. 2
      src/components/ueditorPlus/index.vue
  3. 4
      src/pages/column/page/governance.vue
  4. 2
      src/setting.js

@ -24,7 +24,7 @@
</div> </div>
</el-upload> </el-upload>
<el-upload v-if="item.type === 'upload' && !item.width" class="uploader" accept=".jpg,.png,.jpeg" <el-upload v-if="item.type === 'upload' && !item.width" class="uploader" accept=".jpg,.png,.jpeg"
:on-success="res => uploadSuccess(res, data.form)" :show-file-list="false" :headers="headers" :on-success="res => uploadSuccess(res, data.form, item)" :show-file-list="false" :headers="headers"
:action="api.upload"> :action="api.upload">
<img v-if="data.form[item.prop]" :src="data.form[item.prop]" class="avatar"> <img v-if="data.form[item.prop]" :src="data.form[item.prop]" class="avatar">
<div class="uploader-default" v-else> <div class="uploader-default" v-else>

@ -52,7 +52,7 @@ export default {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
this.instance = UE.getEditor(this.randomId, { this.instance = UE.getEditor(this.randomId, {
UEDITOR_HOME_URL: Setting.isDev ? '/static/components/ueditorPlus/' : '/front/static/components/ueditorPlus/', UEDITOR_HOME_URL: Setting.isDev ? '/static/components/ueditorPlus/' : '/front/static/components/ueditorPlus/',
serverUrl: "http://121.37.12.51/exam/exam/upload/configAndUpload", serverUrl: "https://huorantech.cn/exam/exam/upload/configAndUpload",
plugins: 'gapfilling', plugins: 'gapfilling',
...this.config ...this.config
}) })

@ -34,10 +34,10 @@
</div> </div>
</div> </div>
<div class="c-wrap">
<div class="cards"> <div class="cards">
<ul> <ul>
<li v-for="(item, i) in modules[2].list" :key="i">{{ item.title }}</li> <li v-for="(item, i) in modules[2].list" :key="i">{{ item.title }}</li>
<div class="cover" @click="toSet(2)">点击配置文本</div>
</ul> </ul>
</div> </div>
@ -50,6 +50,8 @@
<img class="pic" :src="modules[2].list[curYear].list[0].pic" alt=""> <img class="pic" :src="modules[2].list[curYear].list[0].pic" alt="">
</div> </div>
</div> </div>
<div class="cover" @click="toSet(2)">点击配置文本</div>
</div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" />

@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = location.origin let host = location.origin
if (isDev) { if (isDev) {
host = 'https://huorantech.com' host = 'https://huorantech.com'
// host = 'http://192.168.31.217:10000' host = 'http://192.168.31.217:10000'
} }
const Setting = { const Setting = {

Loading…
Cancel
Save