去除formatContent
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<main-content class="fill"/>
|
<main-content class="fill"/>
|
||||||
</el-row>
|
</el-row>
|
||||||
<div v-if="dialog" class="sign-box">
|
<div v-if="dialog" class="sign-box">
|
||||||
<ai-sign style="margin: auto" :instance="$axios" :action="{login}"
|
<ai-sign style="margin: auto" :instance="$request" :action="{login}"
|
||||||
visible @login="getToken" :showScanLogin="false"/>
|
visible @login="getToken" :showScanLogin="false"/>
|
||||||
</div>
|
</div>
|
||||||
<el-button type="info" v-if="!showTools" class="fixedBtn" @click="showTools=true">显示工具栏</el-button>
|
<el-button type="info" v-if="!showTools" class="fixedBtn" @click="showTools=true">显示工具栏</el-button>
|
||||||
@@ -54,7 +54,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
handleLogin() {
|
handleLogin() {
|
||||||
this.$axios.delete("/auth/token/logout").finally(() => {
|
this.$request.delete("/auth/token/logout").finally(() => {
|
||||||
this.dialog = true
|
this.dialog = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,9 +17,7 @@ Vue.use(vcUI);
|
|||||||
Vue.use(dvui)
|
Vue.use(dvui)
|
||||||
//富文本编辑器配置
|
//富文本编辑器配置
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
Vue.prototype.$axios = axios;
|
|
||||||
Vue.prototype.$request = axios
|
Vue.prototype.$request = axios
|
||||||
Vue.prototype.formatContent = (val) => val.replace(/(\r\n)|(\n)/g, '<br>');
|
|
||||||
Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e]));
|
Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e]));
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="appEntry">
|
<section class="appEntry">
|
||||||
<component v-if="app" :is="app" :instance="$axios" :dict="$dict" :permissions="$permissions"/>
|
<component v-if="app" :is="app" :instance="$request" :dict="$dict" :permissions="$permissions"/>
|
||||||
<ai-empty v-else>无法找到应用文件</ai-empty>
|
<ai-empty v-else>无法找到应用文件</ai-empty>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ export default {
|
|||||||
{
|
{
|
||||||
slot: 'joinStatus',
|
slot: 'joinStatus',
|
||||||
},
|
},
|
||||||
{ prop: 'signInStatus', align: 'center', label: '签到', formart: v => v === '1' ? '已签到' : '未签到' },
|
{prop: 'signInStatus', align: 'center', label: '签到', formart: v => v === '1' ? '已签到' : '未签到'},
|
||||||
{
|
{
|
||||||
slot: 'option',
|
slot: 'option',
|
||||||
}
|
}
|
||||||
@@ -249,11 +249,9 @@ export default {
|
|||||||
params: {id}
|
params: {id}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.info = {
|
let {files = [], content} = res.data
|
||||||
...res.data,
|
content = content.replace(/(\r\n)|(\n)/g, "<br>")
|
||||||
content: this.formatContent(res.data.content || ""),
|
this.info = {...res.data, content, files};
|
||||||
files: res.data.files || []
|
|
||||||
};
|
|
||||||
this.searchMeetinguser()
|
this.searchMeetinguser()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -255,11 +255,9 @@ export default {
|
|||||||
params: {id}
|
params: {id}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.info = {
|
let {files = [], content} = res.data
|
||||||
...res.data,
|
content = content.replace(/(\r\n)|(\n)/g, "<br>")
|
||||||
content: this.formatContent(res.data.content || ""),
|
this.info = {...res.data, content, files};
|
||||||
files: res.data.files || []
|
|
||||||
};
|
|
||||||
this.searchMeetinguser()
|
this.searchMeetinguser()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user