Commit 60d40602 by 前端

Merge branch 'v3.12.0' into 'master'

V3.12.0

See merge request !17
2 parents a3054f0e 3a418133
......@@ -701,7 +701,7 @@ npm run build
```javascript
const defaultSettings = require('./src/config/index.js')
const name = defaultSettings.title || 'vue mobile template'
const name = defaultSettings.title || '嘀加企微助手'
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
// externals
......
......@@ -15,7 +15,7 @@
"autoprefixer": "^8.0.0",
"core-js": "^3.6.4",
"dayjs": "^1.10.5",
"glsx-common": "^1.4.9",
"glsx-common": "^2.1.0",
"lib-flexible": "^0.3.2",
"postcss-loader": "^6.2.0",
"sha1": "^1.1.1",
......
......@@ -32,5 +32,13 @@ export default {
url,
data
})
}
},
/**服务端发送朋友圈 */
shareToExternalMoments (data) {
data.method = 'scrm.api.sop.task.wwMoment.sendMonmentMessage'
return window.$HTTP({
url,
data
})
},
}
\ No newline at end of file
......@@ -10,7 +10,7 @@
module.exports = {
envVersion: 'trial',
request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址,
baseURL: '//scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间
timeout: 180000,
// 携带凭证
......
/*
* @Descripttion:
* @version:
......@@ -7,20 +8,20 @@
* @LastEditTime: 2021-06-30 11:23:25
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
import { utils, Http } from 'glsx-common'
let config = require('./conf.js')
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
export const fetchConfig = function (isEnv = true) {
if (isEnv) {
let { request } = config
Object.assign(request, { timeout })
return Promise.resolve(config)
}
// /**测试mock*/ return window.fetch('https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', {}).then(res => res.json())
/**生产mock*/ return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', {}).then(res => res.json())
let params = { moduleName: 'scrm-wx-work-sop-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params)
}
export const cfg = {
install(vue, config) {
install (vue, config) {
vue.prototype.$config = config
}
}
\ No newline at end of file
......@@ -5,7 +5,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
const resolve = dir => path.join(__dirname, dir)
// page title
const name = defaultSettings.title || 'vue mobile template'
const name = defaultSettings.title || '嘀加企微助手'
// 生产环境,测试和正式
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
// externals
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!