客服聊天系统对接及功能添加
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view class="page" />
|
||||
<ChatWidget />
|
||||
<ChatWidget v-if="!$route.path.includes('/customerService')" />
|
||||
</div>
|
||||
</template>
|
||||
<script >
|
||||
|
||||
@@ -48,13 +48,13 @@ export function getUpdateRoom(data) {
|
||||
}
|
||||
|
||||
//图片上传接口
|
||||
export function getFileUpdate(data) {
|
||||
return request({
|
||||
url: `file/update`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// export function getFileUpdate(data) {
|
||||
// return request({
|
||||
// url: `file/update`,
|
||||
// method: 'post',
|
||||
// data
|
||||
// })
|
||||
// }
|
||||
|
||||
|
||||
//图根据当前用户邮箱查询聊天室id
|
||||
@@ -66,3 +66,13 @@ export function getUserid() {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//上传图片
|
||||
export function getFileUpdate(data) {
|
||||
return request({
|
||||
url: `pool/ticket/uploadFile`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -124,7 +124,7 @@ const childrenRoutes = [
|
||||
component: () => import('../views/customerService/index.vue'),
|
||||
meta: {title: '在线客服',
|
||||
description:i18n.t(`seo.apiFile`),
|
||||
allAuthority:[`all`],
|
||||
allAuthority:[`customer_service`],//客服权限
|
||||
// keywords: 'M2Pool 矿池,API 文档,认证 token,接口调用,API file,authentication token,Interface call'
|
||||
keywords:{
|
||||
en: 'API file,authentication token,Interface call',
|
||||
@@ -689,7 +689,10 @@ router.beforeEach((to, from, next) => {
|
||||
message:i18n.t(`mining.jurisdiction`),
|
||||
type: 'error'
|
||||
});
|
||||
|
||||
next({ path: `/${lang}` }) // 添加这行,重定向到首页
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -24,8 +24,8 @@
|
||||
show-word-limit
|
||||
v-model="ruleForm.desc">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item style="width: 100%;">
|
||||
<div style="width: 100%;font-weight: 600;color: rgba(0,0,0,0.7);">{{ $t(`work.enclosure`) }}</div>
|
||||
|
||||
Reference in New Issue
Block a user