Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
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 fdcf1553
authored
Jul 23, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
test
1 parent
6fb24eb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/api/request.js
src/base.js
src/api/request.js
View file @
fdcf155
...
...
@@ -4,7 +4,9 @@ import RequestMethods from './request.methods'
import
{
GlAxios
}
from
'glsx-vue-common'
import
base
from
'@/base'
const
request
=
(
params
=
{},
url
,
method
=
RequestMethods
.
POST
,
noSignAttr
=
[])
=>
{
console
.
log
(
'出发'
,
window
.
vm
.
$config
)
params
.
method
=
url
.
trimStart
().
trimEnd
()
// this.$get_session_common_config().axios.sys.appKey
params
.
appKey
=
'48e5e13229b82c1b4e6e8c96151f0637'
...
...
src/base.js
View file @
fdcf155
...
...
@@ -66,7 +66,6 @@ var mixin = {
},
}
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/oss_dj_equity_config'
)
=>
{
return
new
Promise
(
resolve
=>
{
...
...
@@ -74,6 +73,7 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => {
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
let
config
=
JSON
.
parse
(
xhr
.
responseText
)
Vue
.
prototype
.
$config
=
config
resolve
({
'vue'
:
Vue
,
'config'
:
config
...
...
@@ -95,5 +95,5 @@ const render = App => {
}
export
default
{
render
,
getConfig
getConfig
,
}
\ No newline at end of file
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