Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ae3aad48
authored
Jan 07, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更换省市区地址为可配置的
1 parent
6fe8ced0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/components/province-city/index.vue
src/setup/qiankun.js
src/components/province-city/index.vue
View file @
ae3aad4
...
...
@@ -157,8 +157,9 @@ export default {
data
+=
'&'
+
key
+
'='
+
params
[
key
]
}
// let path = `https://restapi.amap.com/v3/config/district?key=d22348363c34c266f772ae9b635eef2a`
let
path
=
'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
path
=
path
+
data
// let path = 'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
// path = path + data
const
path
=
this
.
$provinceUrl
+
data
const
pro
=
fetch
(
path
).
then
(
res
=>
{
return
res
.
json
()
})
...
...
src/setup/qiankun.js
View file @
ae3aad4
...
...
@@ -27,12 +27,13 @@ let routes = []
let
router
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
request_common
,
request_config
,
request_car
,
sign_common
,
request_province
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
sign
,
secret
,
request_common
,
request_config
,
request_car
,
sign_common
,
request_province
,
provinceUrl
}
=
await
fetchConfig
(
common
)
console
.
log
(
request
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
console
.
log
(
globalState
)
Vue
.
prototype
.
$provinceUrl
=
provinceUrl
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment