Commit 32f9f907 by 李伟康

修复BUG

1 parent cbc35934
...@@ -11,7 +11,7 @@ module.exports = { ...@@ -11,7 +11,7 @@ module.exports = {
title: '嘀加企微助手', title: '嘀加企微助手',
envVersion: 'trial', envVersion: 'trial',
request: { request: {
baseURL: '//scrm.dev.glsx.com.cn', // 本地测试项目地址, baseURL: '//scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -11,11 +11,11 @@ import { utils, Http } from 'glsx-common' ...@@ -11,11 +11,11 @@ import { utils, Http } from 'glsx-common'
let config = require('./conf.js') let config = require('./conf.js')
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function (isEnv = true) {
// if (isEnv) { if (isEnv) {
// let { request } = config let { request } = config
// Object.assign(request, { timeout }) Object.assign(request, { timeout })
// return Promise.resolve(config) return Promise.resolve(config)
// } }
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config')
let params = { moduleName: 'scrm-wx-work-psd-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'scrm-wx-work-psd-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params) return utils.getConfig(params)
......
...@@ -156,11 +156,10 @@ export default { ...@@ -156,11 +156,10 @@ export default {
fileUrl, fileUrl,
text text
}) { }) {
this.text = ''
this.imageUrl = ''
if (pushType == 5) this.text = text if (pushType == 5) this.text = text
else { else this.imageUrl = fileUrl
this.imageUrl = fileUrl
this.text = ''
}
this.$nextTick(() => { this.$nextTick(() => {
this.showImagePreview = true this.showImagePreview = true
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!