1
This commit is contained in:
parent
905872c099
commit
6beb39873b
@ -5,13 +5,13 @@ VUE_APP_TITLE = 成事达管理平台
|
||||
ENV = 'development'
|
||||
|
||||
# 成事达管理平台/生产环境
|
||||
VUE_APP_BASE_API = 'https://admin.cdtrucktralier.com'
|
||||
VUE_APP_BASE_API = 'http://127.0.0.1:8099'
|
||||
|
||||
# 路由懒加载
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
|
||||
# websocket
|
||||
VUE_APP_WEBSOCKET = 'wss://admin.cdtrucktralier.com/ws/asset/'
|
||||
VUE_APP_WEBSOCKET = 'ws://127.0.0.1:8099/ws/asset/'
|
||||
|
||||
# 产品、文章预览
|
||||
VUE_APP_PREVIEW = 'https://www.cdtrucktralier.com/admin-preview/'
|
||||
|
@ -6,6 +6,7 @@
|
||||
<el-button type="success" @click="saveTmp">暂 存</el-button>
|
||||
<el-button type="primary" @click="submitForm">发 布</el-button>
|
||||
<el-button type="warning" @click="checkContent">相似度检测</el-button>
|
||||
<el-button @click="preview">文章预览</el-button>
|
||||
<el-button @click="toggleSideBar">{{ showKeywords ? '关闭' : '打开' }}关键词推荐</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -215,6 +216,7 @@
|
||||
<el-button type="success" @click="saveTmp">暂 存</el-button>
|
||||
<el-button type="primary" @click="submitForm">发 布</el-button>
|
||||
<el-button type="warning" @click="checkContent">相似度检测</el-button>
|
||||
<el-button @click="preview">文章预览</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@ -393,6 +395,17 @@ export default {
|
||||
toggleSideBar() {
|
||||
this.showKeywords = !this.showKeywords
|
||||
},
|
||||
/**
|
||||
* 预览文章
|
||||
*/
|
||||
preview(){
|
||||
if(!this.form.id){
|
||||
this.$modal.msgWarning("请先保存或暂存新闻信息!")
|
||||
return
|
||||
}
|
||||
let url =this.previewPrex+this.form.id+"?private=1BC0FFEC2294283E9BDB89E188FCA574"
|
||||
window.open(url)
|
||||
},
|
||||
// 更多操作触发
|
||||
handleCommand(command, row) {
|
||||
switch (command) {
|
||||
|
@ -6,6 +6,7 @@
|
||||
<el-button type="success" @click="saveTmp">暂 存</el-button>
|
||||
<el-button type="primary" @click="submitForm">发 布</el-button>
|
||||
<el-button type="warning" @click="checkContent">相似度检测</el-button>
|
||||
<el-button @click="preview">产品预览</el-button>
|
||||
<el-button @click="toggleSideBar">{{ showKeywords ? '关闭' : '打开' }}关键词推荐</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -201,6 +202,7 @@
|
||||
<el-button type="success" @click="saveTmp">暂 存</el-button>
|
||||
<el-button type="primary" @click="submitForm">发 布</el-button>
|
||||
<el-button type="warning" @click="checkContent">相似度检测</el-button>
|
||||
<el-button @click="preview">产品预览</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@ -372,6 +374,17 @@ export default {
|
||||
toggleSideBar() {
|
||||
this.showKeywords = !this.showKeywords
|
||||
},
|
||||
/**
|
||||
* 预览产品
|
||||
*/
|
||||
preview(){
|
||||
if(!this.form.id){
|
||||
this.$modal.msgWarning("请先保存或暂存产品信息!")
|
||||
return
|
||||
}
|
||||
let url =this.previewPrex+this.form.id+"?private=CAC8F0807B8FB7EA72AF3596600F888A"
|
||||
window.open(url)
|
||||
},
|
||||
// 更多操作触发
|
||||
handleCommand(command, row) {
|
||||
switch (command) {
|
||||
|
Loading…
Reference in New Issue
Block a user