doway-coms 1.1.26 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/doway-coms.common.js +228 -227
- package/lib/doway-coms.umd.js +228 -227
- package/lib/doway-coms.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/doway-coms.common.js
CHANGED
|
@@ -107542,8 +107542,234 @@ var api = {
|
|
|
107542
107542
|
|
|
107543
107543
|
api.warn = api.warning;
|
|
107544
107544
|
/* harmony default export */ var notification = (api);
|
|
107545
|
+
// EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
|
|
107546
|
+
var _axios_0_18_0_axios = __webpack_require__("7f43");
|
|
107547
|
+
var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
|
|
107548
|
+
|
|
107549
|
+
// CONCATENATED MODULE: ./packages/utils/request.js
|
|
107550
|
+
|
|
107551
|
+
|
|
107552
|
+
|
|
107553
|
+
|
|
107554
|
+
|
|
107555
|
+
// create an axios instance
|
|
107556
|
+
const service = _axios_0_18_0_axios_default.a.create({
|
|
107557
|
+
// baseURL: process.env.BASE_API, // api的base_url
|
|
107558
|
+
timeout: 1000 * 60 * 5 // request timeout
|
|
107559
|
+
})
|
|
107560
|
+
// request interceptor
|
|
107561
|
+
service.interceptors.request.use(
|
|
107562
|
+
config => {
|
|
107563
|
+
// Do something before request is sent
|
|
107564
|
+
let tempToken = utils_store.state.token
|
|
107565
|
+
if (tempToken) {
|
|
107566
|
+
config.headers.Authorization = `Bearer ${tempToken}`
|
|
107567
|
+
}
|
|
107568
|
+
// config.headers.Accept = 'application/json,Date, text/plain, */*'
|
|
107569
|
+
return config
|
|
107570
|
+
},
|
|
107571
|
+
error => {
|
|
107572
|
+
// Do something with request error
|
|
107573
|
+
Promise.reject(error)
|
|
107574
|
+
}
|
|
107575
|
+
)
|
|
107576
|
+
|
|
107577
|
+
// respone interceptor
|
|
107578
|
+
service.interceptors.response.use(
|
|
107579
|
+
response => {
|
|
107580
|
+
// store.dispatch(
|
|
107581
|
+
// "setLastRequireTime",
|
|
107582
|
+
// moment().format("YYYY-MM-DD HH:mm:ss")
|
|
107583
|
+
// );
|
|
107584
|
+
|
|
107585
|
+
const res = response.data
|
|
107586
|
+
if (res.status === 200 || res.code === 200) {
|
|
107587
|
+
return response.data
|
|
107588
|
+
}
|
|
107589
|
+
if (res.status === undefined && res.code === undefined) {
|
|
107590
|
+
return response.data
|
|
107591
|
+
}
|
|
107592
|
+
if (res.code === 401) {
|
|
107593
|
+
utils_store.dispatch('logOut')
|
|
107594
|
+
return Promise.reject(res.msg)
|
|
107595
|
+
}
|
|
107596
|
+
notification.error({
|
|
107597
|
+
message: '错误信息',
|
|
107598
|
+
description: h => {
|
|
107599
|
+
return h('div', null, [
|
|
107600
|
+
h('p', { domProps: { innerHTML: res.msg } }, null)
|
|
107601
|
+
])
|
|
107602
|
+
}
|
|
107603
|
+
// description:parseContent.content
|
|
107604
|
+
})
|
|
107605
|
+
|
|
107606
|
+
// notification['error']({ message: '错误信息', description: res.msg })
|
|
107607
|
+
return Promise.reject(res.msg)
|
|
107608
|
+
},
|
|
107609
|
+
error => {
|
|
107610
|
+
if (error.response && error.response.status === 401) {
|
|
107611
|
+
utils_store.dispatch('logOut').then(() => {})
|
|
107612
|
+
return
|
|
107613
|
+
}
|
|
107614
|
+
let errorMsg = ''
|
|
107615
|
+
if (error.response && error.response.data && error.response.data.error) {
|
|
107616
|
+
if (error.response.data.error_description) {
|
|
107617
|
+
errorMsg = error.response.data.error_description
|
|
107618
|
+
} else {
|
|
107619
|
+
errorMsg = error.response.data.error
|
|
107620
|
+
}
|
|
107621
|
+
} else {
|
|
107622
|
+
errorMsg = error.msg
|
|
107623
|
+
}
|
|
107624
|
+
notification['error']({ message: '错误信息', description: errorMsg })
|
|
107625
|
+
return Promise.reject(error)
|
|
107626
|
+
}
|
|
107627
|
+
)
|
|
107628
|
+
|
|
107629
|
+
/* harmony default export */ var utils_request = (service);
|
|
107630
|
+
|
|
107631
|
+
// CONCATENATED MODULE: ./packages/utils/api.js
|
|
107632
|
+
|
|
107633
|
+
|
|
107634
|
+
function loadViewInfo(moduleCode) {
|
|
107635
|
+
return utils_request({
|
|
107636
|
+
url: utils_store.getters.umsUrl + '/v1/module/loadViewInfo',
|
|
107637
|
+
method: 'get',
|
|
107638
|
+
params: {
|
|
107639
|
+
moduleCode: moduleCode
|
|
107640
|
+
}
|
|
107641
|
+
})
|
|
107642
|
+
}
|
|
107643
|
+
function attachGetAttachUrlApi() {
|
|
107644
|
+
return utils_store.getters.msgUrl + '/v1/Attach'
|
|
107645
|
+
}
|
|
107646
|
+
|
|
107647
|
+
/**
|
|
107648
|
+
* 获取cust信息列表
|
|
107649
|
+
* @param postData 提交的数据,分页信息
|
|
107650
|
+
*/
|
|
107651
|
+
function attachSearchApi(postData) {
|
|
107652
|
+
return utils_request({
|
|
107653
|
+
url: utils_store.getters.msgUrl + '/v1/Attach/Search',
|
|
107654
|
+
method: 'post',
|
|
107655
|
+
data: postData
|
|
107656
|
+
})
|
|
107657
|
+
}
|
|
107658
|
+
|
|
107659
|
+
// EXTERNAL MODULE: ./node_modules/_vuex@3.6.2@vuex/dist/vuex.esm.js
|
|
107660
|
+
var vuex_esm = __webpack_require__("7736");
|
|
107661
|
+
|
|
107662
|
+
// CONCATENATED MODULE: ./packages/utils/store.js
|
|
107663
|
+
|
|
107664
|
+
|
|
107665
|
+
|
|
107666
|
+
|
|
107667
|
+
|
|
107668
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* default */])
|
|
107669
|
+
|
|
107670
|
+
/* harmony default export */ var utils_store = (new vuex_esm["a" /* default */].Store({
|
|
107671
|
+
state: {
|
|
107672
|
+
umsUrl:'',
|
|
107673
|
+
msgUrl:'',
|
|
107674
|
+
token: '',
|
|
107675
|
+
webAppCode: '',
|
|
107676
|
+
moduleViewInfo: {},
|
|
107677
|
+
controlSize: 'small',
|
|
107678
|
+
newId: 0,//明细新增id
|
|
107679
|
+
},
|
|
107680
|
+
mutations: {
|
|
107681
|
+
SET_TOKEN: (state, token) => {
|
|
107682
|
+
state.token = token
|
|
107683
|
+
},
|
|
107684
|
+
SET_WEB_APP_CODE: (state, webAppCode) => {
|
|
107685
|
+
state.webAppCode = webAppCode
|
|
107686
|
+
},
|
|
107687
|
+
SET_MODULE_VIEW_INFO: (state, data) => {
|
|
107688
|
+
state.moduleViewInfo[data.moduleCode] = data.info
|
|
107689
|
+
},
|
|
107690
|
+
SET_NEW_ID: (state, id) => {
|
|
107691
|
+
state.newId = id
|
|
107692
|
+
},
|
|
107693
|
+
SET_UMS_URL:(state,url) => {
|
|
107694
|
+
state.umsUrl = url
|
|
107695
|
+
},
|
|
107696
|
+
SET_MSG_URL:(state,url) => {
|
|
107697
|
+
state.umsUrl = url
|
|
107698
|
+
}
|
|
107699
|
+
},
|
|
107700
|
+
actions: {
|
|
107701
|
+
setTabTitle({ commit }, tabInfo) {
|
|
107702
|
+
if (tabInfo.replaceQuery) {
|
|
107703
|
+
let newRoutePath =
|
|
107704
|
+
tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
|
|
107705
|
+
history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
|
|
107706
|
+
let keepAliveComp =
|
|
107707
|
+
tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
|
|
107708
|
+
.componentInstance
|
|
107709
|
+
|
|
107710
|
+
for (let cacheKey in keepAliveComp.cache) {
|
|
107711
|
+
if (
|
|
107712
|
+
keepAliveComp.cache[cacheKey].componentInstance._uid ===
|
|
107713
|
+
tabInfo.compUid
|
|
107714
|
+
) {
|
|
107715
|
+
keepAliveComp.cache[newRoutePath] = keepAliveComp.cache[cacheKey]
|
|
107716
|
+
keepAliveComp.keyToCache = newRoutePath
|
|
107717
|
+
XEUtils.remove(keepAliveComp.keys, loopKey => loopKey === cacheKey)
|
|
107718
|
+
delete keepAliveComp.cache[cacheKey]
|
|
107719
|
+
keepAliveComp.keys.push(newRoutePath)
|
|
107720
|
+
break
|
|
107721
|
+
}
|
|
107722
|
+
}
|
|
107723
|
+
}
|
|
107724
|
+
//通知父应用修改Tab标签文字描述
|
|
107725
|
+
window.$wujie.bus.$emit('subAppSetTabTitle', {
|
|
107726
|
+
title: tabInfo.title,
|
|
107727
|
+
name: tabInfo.name,
|
|
107728
|
+
query: tabInfo.query,
|
|
107729
|
+
replaceQuery: tabInfo.replaceQuery,
|
|
107730
|
+
path: tabInfo.path
|
|
107731
|
+
})
|
|
107732
|
+
},
|
|
107733
|
+
closeTab({ commit }, fullPath) {
|
|
107734
|
+
window.$wujie.bus.$emit(
|
|
107735
|
+
'subAppCloseTab',
|
|
107736
|
+
window.$wujie.props.webAppActiveRule + fullPath
|
|
107737
|
+
)
|
|
107738
|
+
},
|
|
107739
|
+
moduleLoadViewInfo({ commit, state }, dataInfo) {
|
|
107740
|
+
let vm = this
|
|
107741
|
+
return new Promise((resolve, reject) => {
|
|
107742
|
+
loadViewInfo(dataInfo.moduleCode)
|
|
107743
|
+
.then(reponseData => {
|
|
107744
|
+
commit('SET_MODULE_VIEW_INFO', {
|
|
107745
|
+
moduleCode: dataInfo.moduleCode,
|
|
107746
|
+
info: reponseData.content
|
|
107747
|
+
})
|
|
107748
|
+
resolve()
|
|
107749
|
+
})
|
|
107750
|
+
.catch(error => {
|
|
107751
|
+
reject(error)
|
|
107752
|
+
})
|
|
107753
|
+
})
|
|
107754
|
+
}
|
|
107755
|
+
},
|
|
107756
|
+
modules:{},
|
|
107757
|
+
getters: {
|
|
107758
|
+
umsUrl:state=>state.umsUrl,
|
|
107759
|
+
msgUrl:state=>state.msgUrl,
|
|
107760
|
+
token: state => state.token,
|
|
107761
|
+
webAppCode: state => state.webAppCode,
|
|
107762
|
+
moduleViewInfo: state => state.moduleViewInfo,
|
|
107763
|
+
controlSize: state => state.controlSize,
|
|
107764
|
+
newId: state => () => {
|
|
107765
|
+
state.newId = state.newId + 1
|
|
107766
|
+
return state.newId
|
|
107767
|
+
}
|
|
107768
|
+
}
|
|
107769
|
+
}));
|
|
107545
107770
|
// CONCATENATED MODULE: ./packages/utils/common.js
|
|
107546
107771
|
|
|
107772
|
+
|
|
107547
107773
|
/**
|
|
107548
107774
|
* 替换掩码参数字符串
|
|
107549
107775
|
* @param {参数字符串} paramString
|
|
@@ -107802,8 +108028,8 @@ function replaceParamString(
|
|
|
107802
108028
|
if(!to.meta.aliveCacheKey){
|
|
107803
108029
|
alert('防呆,子应用没有路由缓存键')
|
|
107804
108030
|
}
|
|
107805
|
-
if (to.meta.moduleCode && !
|
|
107806
|
-
|
|
108031
|
+
if (to.meta.moduleCode && !utils_store.getters.moduleViewInfo[to.meta.moduleCode]) {
|
|
108032
|
+
utils_store
|
|
107807
108033
|
.dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
|
|
107808
108034
|
.then(() => {
|
|
107809
108035
|
next()
|
|
@@ -107815,231 +108041,6 @@ function replaceParamString(
|
|
|
107815
108041
|
next()
|
|
107816
108042
|
}
|
|
107817
108043
|
}
|
|
107818
|
-
// EXTERNAL MODULE: ./node_modules/_axios@0.18.0@axios/index.js
|
|
107819
|
-
var _axios_0_18_0_axios = __webpack_require__("7f43");
|
|
107820
|
-
var _axios_0_18_0_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_18_0_axios);
|
|
107821
|
-
|
|
107822
|
-
// CONCATENATED MODULE: ./packages/utils/api.js
|
|
107823
|
-
|
|
107824
|
-
|
|
107825
|
-
function loadViewInfo(moduleCode) {
|
|
107826
|
-
return utils_request({
|
|
107827
|
-
url: utils_store.getters.umsUrl + '/v1/module/loadViewInfo',
|
|
107828
|
-
method: 'get',
|
|
107829
|
-
params: {
|
|
107830
|
-
moduleCode: moduleCode
|
|
107831
|
-
}
|
|
107832
|
-
})
|
|
107833
|
-
}
|
|
107834
|
-
function attachGetAttachUrlApi() {
|
|
107835
|
-
return utils_store.getters.msgUrl + '/v1/Attach'
|
|
107836
|
-
}
|
|
107837
|
-
|
|
107838
|
-
/**
|
|
107839
|
-
* 获取cust信息列表
|
|
107840
|
-
* @param postData 提交的数据,分页信息
|
|
107841
|
-
*/
|
|
107842
|
-
function attachSearchApi(postData) {
|
|
107843
|
-
return utils_request({
|
|
107844
|
-
url: utils_store.getters.msgUrl + '/v1/Attach/Search',
|
|
107845
|
-
method: 'post',
|
|
107846
|
-
data: postData
|
|
107847
|
-
})
|
|
107848
|
-
}
|
|
107849
|
-
|
|
107850
|
-
// EXTERNAL MODULE: ./node_modules/_vuex@3.6.2@vuex/dist/vuex.esm.js
|
|
107851
|
-
var vuex_esm = __webpack_require__("7736");
|
|
107852
|
-
|
|
107853
|
-
// CONCATENATED MODULE: ./packages/utils/store.js
|
|
107854
|
-
|
|
107855
|
-
|
|
107856
|
-
|
|
107857
|
-
|
|
107858
|
-
|
|
107859
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* default */])
|
|
107860
|
-
|
|
107861
|
-
/* harmony default export */ var utils_store = (new vuex_esm["a" /* default */].Store({
|
|
107862
|
-
state: {
|
|
107863
|
-
umsUrl:'',
|
|
107864
|
-
msgUrl:'',
|
|
107865
|
-
token: '',
|
|
107866
|
-
webAppCode: '',
|
|
107867
|
-
moduleViewInfo: {},
|
|
107868
|
-
controlSize: 'small',
|
|
107869
|
-
newId: 0,//明细新增id
|
|
107870
|
-
},
|
|
107871
|
-
mutations: {
|
|
107872
|
-
SET_TOKEN: (state, token) => {
|
|
107873
|
-
state.token = token
|
|
107874
|
-
},
|
|
107875
|
-
SET_WEB_APP_CODE: (state, webAppCode) => {
|
|
107876
|
-
state.webAppCode = webAppCode
|
|
107877
|
-
},
|
|
107878
|
-
SET_MODULE_VIEW_INFO: (state, data) => {
|
|
107879
|
-
state.moduleViewInfo[data.moduleCode] = data.info
|
|
107880
|
-
},
|
|
107881
|
-
SET_NEW_ID: (state, id) => {
|
|
107882
|
-
state.newId = id
|
|
107883
|
-
},
|
|
107884
|
-
SET_UMS_URL:(state,url) => {
|
|
107885
|
-
state.umsUrl = url
|
|
107886
|
-
},
|
|
107887
|
-
SET_MSG_URL:(state,url) => {
|
|
107888
|
-
state.umsUrl = url
|
|
107889
|
-
}
|
|
107890
|
-
},
|
|
107891
|
-
actions: {
|
|
107892
|
-
setTabTitle({ commit }, tabInfo) {
|
|
107893
|
-
if (tabInfo.replaceQuery) {
|
|
107894
|
-
let newRoutePath =
|
|
107895
|
-
tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
|
|
107896
|
-
history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
|
|
107897
|
-
let keepAliveComp =
|
|
107898
|
-
tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
|
|
107899
|
-
.componentInstance
|
|
107900
|
-
|
|
107901
|
-
for (let cacheKey in keepAliveComp.cache) {
|
|
107902
|
-
if (
|
|
107903
|
-
keepAliveComp.cache[cacheKey].componentInstance._uid ===
|
|
107904
|
-
tabInfo.compUid
|
|
107905
|
-
) {
|
|
107906
|
-
keepAliveComp.cache[newRoutePath] = keepAliveComp.cache[cacheKey]
|
|
107907
|
-
keepAliveComp.keyToCache = newRoutePath
|
|
107908
|
-
XEUtils.remove(keepAliveComp.keys, loopKey => loopKey === cacheKey)
|
|
107909
|
-
delete keepAliveComp.cache[cacheKey]
|
|
107910
|
-
keepAliveComp.keys.push(newRoutePath)
|
|
107911
|
-
break
|
|
107912
|
-
}
|
|
107913
|
-
}
|
|
107914
|
-
}
|
|
107915
|
-
//通知父应用修改Tab标签文字描述
|
|
107916
|
-
window.$wujie.bus.$emit('subAppSetTabTitle', {
|
|
107917
|
-
title: tabInfo.title,
|
|
107918
|
-
name: tabInfo.name,
|
|
107919
|
-
query: tabInfo.query,
|
|
107920
|
-
replaceQuery: tabInfo.replaceQuery,
|
|
107921
|
-
path: tabInfo.path
|
|
107922
|
-
})
|
|
107923
|
-
},
|
|
107924
|
-
closeTab({ commit }, fullPath) {
|
|
107925
|
-
window.$wujie.bus.$emit(
|
|
107926
|
-
'subAppCloseTab',
|
|
107927
|
-
window.$wujie.props.webAppActiveRule + fullPath
|
|
107928
|
-
)
|
|
107929
|
-
},
|
|
107930
|
-
moduleLoadViewInfo({ commit, state }, dataInfo) {
|
|
107931
|
-
let vm = this
|
|
107932
|
-
return new Promise((resolve, reject) => {
|
|
107933
|
-
loadViewInfo(dataInfo.moduleCode)
|
|
107934
|
-
.then(reponseData => {
|
|
107935
|
-
commit('SET_MODULE_VIEW_INFO', {
|
|
107936
|
-
moduleCode: dataInfo.moduleCode,
|
|
107937
|
-
info: reponseData.content
|
|
107938
|
-
})
|
|
107939
|
-
resolve()
|
|
107940
|
-
})
|
|
107941
|
-
.catch(error => {
|
|
107942
|
-
reject(error)
|
|
107943
|
-
})
|
|
107944
|
-
})
|
|
107945
|
-
}
|
|
107946
|
-
},
|
|
107947
|
-
modules:{},
|
|
107948
|
-
getters: {
|
|
107949
|
-
umsUrl:state=>state.umsUrl,
|
|
107950
|
-
msgUrl:state=>state.msgUrl,
|
|
107951
|
-
token: state => state.token,
|
|
107952
|
-
webAppCode: state => state.webAppCode,
|
|
107953
|
-
moduleViewInfo: state => state.moduleViewInfo,
|
|
107954
|
-
controlSize: state => state.controlSize,
|
|
107955
|
-
newId: state => () => {
|
|
107956
|
-
state.newId = state.newId + 1
|
|
107957
|
-
return state.newId
|
|
107958
|
-
}
|
|
107959
|
-
}
|
|
107960
|
-
}));
|
|
107961
|
-
// CONCATENATED MODULE: ./packages/utils/request.js
|
|
107962
|
-
|
|
107963
|
-
|
|
107964
|
-
|
|
107965
|
-
|
|
107966
|
-
|
|
107967
|
-
// create an axios instance
|
|
107968
|
-
const service = _axios_0_18_0_axios_default.a.create({
|
|
107969
|
-
// baseURL: process.env.BASE_API, // api的base_url
|
|
107970
|
-
timeout: 1000 * 60 * 5 // request timeout
|
|
107971
|
-
})
|
|
107972
|
-
// request interceptor
|
|
107973
|
-
service.interceptors.request.use(
|
|
107974
|
-
config => {
|
|
107975
|
-
// Do something before request is sent
|
|
107976
|
-
let tempToken = utils_store.state.token
|
|
107977
|
-
if (tempToken) {
|
|
107978
|
-
config.headers.Authorization = `Bearer ${tempToken}`
|
|
107979
|
-
}
|
|
107980
|
-
// config.headers.Accept = 'application/json,Date, text/plain, */*'
|
|
107981
|
-
return config
|
|
107982
|
-
},
|
|
107983
|
-
error => {
|
|
107984
|
-
// Do something with request error
|
|
107985
|
-
Promise.reject(error)
|
|
107986
|
-
}
|
|
107987
|
-
)
|
|
107988
|
-
|
|
107989
|
-
// respone interceptor
|
|
107990
|
-
service.interceptors.response.use(
|
|
107991
|
-
response => {
|
|
107992
|
-
// store.dispatch(
|
|
107993
|
-
// "setLastRequireTime",
|
|
107994
|
-
// moment().format("YYYY-MM-DD HH:mm:ss")
|
|
107995
|
-
// );
|
|
107996
|
-
|
|
107997
|
-
const res = response.data
|
|
107998
|
-
if (res.status === 200 || res.code === 200) {
|
|
107999
|
-
return response.data
|
|
108000
|
-
}
|
|
108001
|
-
if (res.status === undefined && res.code === undefined) {
|
|
108002
|
-
return response.data
|
|
108003
|
-
}
|
|
108004
|
-
if (res.code === 401) {
|
|
108005
|
-
utils_store.dispatch('logOut')
|
|
108006
|
-
return Promise.reject(res.msg)
|
|
108007
|
-
}
|
|
108008
|
-
notification.error({
|
|
108009
|
-
message: '错误信息',
|
|
108010
|
-
description: h => {
|
|
108011
|
-
return h('div', null, [
|
|
108012
|
-
h('p', { domProps: { innerHTML: res.msg } }, null)
|
|
108013
|
-
])
|
|
108014
|
-
}
|
|
108015
|
-
// description:parseContent.content
|
|
108016
|
-
})
|
|
108017
|
-
|
|
108018
|
-
// notification['error']({ message: '错误信息', description: res.msg })
|
|
108019
|
-
return Promise.reject(res.msg)
|
|
108020
|
-
},
|
|
108021
|
-
error => {
|
|
108022
|
-
if (error.response && error.response.status === 401) {
|
|
108023
|
-
utils_store.dispatch('logOut').then(() => {})
|
|
108024
|
-
return
|
|
108025
|
-
}
|
|
108026
|
-
let errorMsg = ''
|
|
108027
|
-
if (error.response && error.response.data && error.response.data.error) {
|
|
108028
|
-
if (error.response.data.error_description) {
|
|
108029
|
-
errorMsg = error.response.data.error_description
|
|
108030
|
-
} else {
|
|
108031
|
-
errorMsg = error.response.data.error
|
|
108032
|
-
}
|
|
108033
|
-
} else {
|
|
108034
|
-
errorMsg = error.msg
|
|
108035
|
-
}
|
|
108036
|
-
notification['error']({ message: '错误信息', description: errorMsg })
|
|
108037
|
-
return Promise.reject(error)
|
|
108038
|
-
}
|
|
108039
|
-
)
|
|
108040
|
-
|
|
108041
|
-
/* harmony default export */ var utils_request = (service);
|
|
108042
|
-
|
|
108043
108044
|
// CONCATENATED MODULE: ./node_modules/_ant-design-vue@1.7.8@ant-design-vue/es/_util/responsiveObserve.js
|
|
108044
108045
|
|
|
108045
108046
|
|