Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
dj-data-view
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 d7cbd2eb
authored
Oct 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
14b0c506
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
src/api/request.js
src/main.js
src/api/request.js
View file @
d7cbd2e
...
@@ -17,11 +17,6 @@ class Request {
...
@@ -17,11 +17,6 @@ class Request {
},
},
method
method
}
}
params
.
req
.
corporateGroupName
=
'广汇'
const
{
reportParams
}
=
window
.
vm
.
$store
.
state
.
app
if
(
reportParams
)
{
if
(
reportParams
.
brand
)
params
.
req
.
brandName
=
reportParams
.
brand
.
name
}
if
(
method
===
'GET'
)
{
if
(
method
===
'GET'
)
{
var
paramsArray
=
[]
var
paramsArray
=
[]
Object
.
keys
(
params
.
req
).
forEach
(
key
=>
paramsArray
.
push
(
'req.'
+
key
+
'='
+
params
.
req
[
key
]))
Object
.
keys
(
params
.
req
).
forEach
(
key
=>
paramsArray
.
push
(
'req.'
+
key
+
'='
+
params
.
req
[
key
]))
...
...
src/main.js
View file @
d7cbd2e
...
@@ -32,6 +32,7 @@ Vue.prototype.to = function (name, params) {
...
@@ -32,6 +32,7 @@ Vue.prototype.to = function (name, params) {
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
const
isMock
=
[
'prod'
,
'production'
].
includes
(
process
.
env
.
NODE_ENV
)
const
isMock
=
[
'prod'
,
'production'
].
includes
(
process
.
env
.
NODE_ENV
)
console
.
log
(
isMock
,
'----------------'
)
fetchConfig
(
!
isMock
).
then
(
res
=>
{
fetchConfig
(
!
isMock
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
// 从配置服务器获取动态配置
// 从配置服务器获取动态配置
...
...
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