Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
5ee9eceb
Commit
5ee9eceb
authored
Nov 18, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tenant): 调试
parent
b2cf9a08
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
dev.config.ts
app/web/config/dev.config.ts
+5
-5
index.ts
app/web/page/editor/component/DynamicPageForm/index.ts
+1
-1
http.service.ts
app/web/service/http.service.ts
+0
-1
config.local.ts
config/config.local.ts
+3
-3
No files found.
app/web/config/dev.config.ts
View file @
5ee9eceb
...
@@ -3,13 +3,13 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'http';
...
@@ -3,13 +3,13 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'http';
export
default
{
export
default
{
apiHost
:
`http://localhost:7002/`
,
apiHost
:
`http://localhost:7002/`
,
// apiHost: `http://192.168.28.199:7001/`,
// apiHost: `http://192.168.28.199:7001/`,
// apiHost: 'https://quantum-blocks-
bfe
.liangkebang.net/',
// apiHost: 'https://quantum-blocks-
vcc3
.liangkebang.net/',
h5Host
:
'
https://quantum-h5-
bfe
.liangkebang.net
'
,
h5Host
:
'
https://quantum-h5-
vcc3
.liangkebang.net
'
,
qiniuHost
:
`https://appsync.lkbang.net`
,
qiniuHost
:
`https://appsync.lkbang.net`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
opapiHost
:
`https://opapi-
bfe
.liangkebang.net`
,
opapiHost
:
`https://opapi-
vcc3
.liangkebang.net`
,
qiniuUpHost
:
`
${
protocol
}
//up-z0.qiniup.com`
,
qiniuUpHost
:
`
${
protocol
}
//up-z0.qiniup.com`
,
// kdspHost: 'https://kdsp-api-
bfe
.liangkebang.net',
// kdspHost: 'https://kdsp-api-
vcc3
.liangkebang.net',
kdspHost
:
'
https://talos-
bfe
.liangkebang.net
'
,
kdspHost
:
'
https://talos-
vcc3
.liangkebang.net
'
,
yxmTenantId
:
560761
yxmTenantId
:
560761
};
};
\ No newline at end of file
app/web/page/editor/component/DynamicPageForm/index.ts
View file @
5ee9eceb
...
@@ -158,7 +158,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
...
@@ -158,7 +158,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
@
Watch
(
'
hideShareBtn
'
,
{
immediate
:
true
})
@
Watch
(
'
hideShareBtn
'
,
{
immediate
:
true
})
onAuthStateChange
(
val
)
{
onAuthStateChange
(
val
)
{
const
options
=
val
?
[
'
购物车
'
,
'
自定义
'
]
:
[
'
购物车
'
,
'
分享
'
,
'
自定义
'
];
const
options
=
val
?
[
'
自定义
'
]
:
[
'
购物车
'
,
'
分享
'
,
'
自定义
'
];
this
.
$set
(
this
.
floatSchema
[
1
].
formControl
[
0
],
'
options
'
,
options
);
this
.
$set
(
this
.
floatSchema
[
1
].
formControl
[
0
],
'
options
'
,
options
);
}
}
...
...
app/web/service/http.service.ts
View file @
5ee9eceb
...
@@ -96,7 +96,6 @@ instance.interceptors.request.use(
...
@@ -96,7 +96,6 @@ instance.interceptors.request.use(
config
.
headers
[
'
X-Auth-Token
'
]
=
token
;
config
.
headers
[
'
X-Auth-Token
'
]
=
token
;
if
(
config
.
accessToken
)
{
config
.
headers
[
'
Access-Token
'
]
=
token
;
}
if
(
config
.
accessToken
)
{
config
.
headers
[
'
Access-Token
'
]
=
token
;
}
}
}
// TODO 需要确定后台字段是什么
const
tenantId
=
localStorage
.
get
(
'
tenantId
'
)
||
''
;
const
tenantId
=
localStorage
.
get
(
'
tenantId
'
)
||
''
;
config
.
headers
[
'
qg-tenant-id
'
]
=
tenantId
||
''
;
config
.
headers
[
'
qg-tenant-id
'
]
=
tenantId
||
''
;
return
config
;
return
config
;
...
...
config/config.local.ts
View file @
5ee9eceb
...
@@ -26,8 +26,8 @@ export default (appInfo: EggAppConfig) => {
...
@@ -26,8 +26,8 @@ export default (appInfo: EggAppConfig) => {
dialect
:
'
mysql
'
,
dialect
:
'
mysql
'
,
username
:
'
qa
'
,
username
:
'
qa
'
,
password
:
'
qatest
'
,
password
:
'
qatest
'
,
host
:
'
172.17.5.4
6
'
,
host
:
'
172.17.5.4
8
'
,
port
:
3
0198
,
port
:
3
1393
,
database
:
'
low_code
'
,
database
:
'
low_code
'
,
};
};
...
@@ -36,7 +36,7 @@ export default (appInfo: EggAppConfig) => {
...
@@ -36,7 +36,7 @@ export default (appInfo: EggAppConfig) => {
keyPrefix
:
appInfo
.
name
+
'
:
'
,
keyPrefix
:
appInfo
.
name
+
'
:
'
,
},
},
client
:
{
client
:
{
port
:
31
226
,
// Redis port
port
:
31
543
,
// Redis port
host
:
'
172.17.5.14
'
,
// Redis host
host
:
'
172.17.5.14
'
,
// Redis host
password
:
''
,
password
:
''
,
db
:
0
db
:
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment