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