Browse Source

修改文件上传

master
song 3 years ago
parent
commit
6ce2990284
  1. 6
      .env.production
  2. 19
      src/components/RichText/RichText.vue
  3. 1
      src/views/FirstPages/FirstPage.vue

6
.env.production

@ -1,10 +1,10 @@
VUE_APP_MODE=production VUE_APP_MODE=production
VUE_APP_NODE_ENV=production VUE_APP_NODE_ENV=production
VUE_APP_SCENE=/v1.0/datang/ VUE_APP_SCENE=/v1.0/datang/
VUE_APP_BASE_URL=http://10.119.190.12:8000 VUE_APP_BASE_URL=http://test.tall.wiki
VUE_APP_API_URL=http://10.119.190.12:8000/v1.0 VUE_APP_API_URL=http://test.tall.wiki/v1.0
VUE_APP_PROXY_URL=/v1.0 VUE_APP_PROXY_URL=/v1.0
VUE_APP_PUBLIC_PATH=/v1.0/datang VUE_APP_PUBLIC_PATH=/v1.0/datang
VUE_APP_MSG_URL=wss://10.119.190.12:8000/websocket/message/v4.0/ws VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_TITLE=大唐 VUE_APP_TITLE=大唐
VUE_APP_DESCRIPTION=大唐 VUE_APP_DESCRIPTION=大唐

19
src/components/RichText/RichText.vue

@ -16,8 +16,15 @@
<template v-if="richObj && richObj.title"> <template v-if="richObj && richObj.title">
<div v-if="richObj.editor" class="mt-5" style="text-align: right">[责编: {{ richObj.editor }}]</div> <div v-if="richObj.editor" class="mt-5" style="text-align: right">[责编: {{ richObj.editor }}]</div>
</template> </template>
<template v-if="richObj && richObj.jumpUrl"> <!-- <template v-if="richObj && richObj.jumpUrl">
<div>附件<a :href="richObj.jumpUrl" target="_blank">{{ richObj.title }}</a></div> <div>附件<a :href="richObj.jumpUrl" target="_blank">{{ richObj.title }}</a></div>
</template> -->
<template v-if="richObj && richObj.files && richObj.files.length">
<div>附件
<div v-for="(file,index) in richObj.files">
<a :href="file.path" target="_blank">{{ file.name }}</a>
</div>
</div>
</template> </template>
</div> </div>
</template> </template>
@ -34,11 +41,11 @@ export default {
return { code: '' }; return { code: '' };
}, },
watch: { watch: {
richObj(val) { // richObj(val) {
if (val.jumpUrl) { // if (val.jumpUrl) {
window.open(val.jumpUrl); // window.open(val.jumpUrl);
} // }
}, // },
}, },
mounted() { mounted() {
this.code = this.$route.query.code; this.code = this.$route.query.code;

1
src/views/FirstPages/FirstPage.vue

@ -247,7 +247,6 @@ export default {
const res = await this.getContent(param); const res = await this.getContent(param);
this[list] = res.list; this[list] = res.list;
if (showPage === '0210') { if (showPage === '0210') {
console.log('showPage: ', showPage);
this.getFiveImg(); this.getFiveImg();
} }
} catch (error) { } catch (error) {

Loading…
Cancel
Save