Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wbx-PCAndMobi
pc
Commits
ee00a414
Commit
ee00a414
authored
Mar 02, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改getconfig
parent
c059b476
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
home.vue
src/views/home.vue
+6
-3
No files found.
src/views/home.vue
View file @
ee00a414
...
@@ -712,11 +712,9 @@ export default {
...
@@ -712,11 +712,9 @@ export default {
},
},
created
(){},
created
(){},
mounted
(){
mounted
(){
console
.
log
(
'当前登录api: '
+
this
.
$api
.
BASE_URL
)
this
.
getConfig
(
)
if
(
this
.
$api
.
BASE_URL
.
indexOf
(
'xuhui'
)
!=-
1
||
this
.
$api
.
BASE_URL
.
indexOf
(
'31.0.161.39'
)
!=-
1
)
{
//徐汇分支
if
(
this
.
$api
.
BASE_URL
.
indexOf
(
'xuhui'
)
!=-
1
||
this
.
$api
.
BASE_URL
.
indexOf
(
'31.0.161.39'
)
!=-
1
)
{
//徐汇分支
console
.
log
(
'徐汇'
)
this
.
getList
()
this
.
getList
()
this
.
getConfig
()
if
(
this
.
$store
.
state
.
userinfos
&&
this
.
$store
.
state
.
userinfos
.
isAllPerm
)
{
// 不是全部权限dashboard下方的模块不展示
if
(
this
.
$store
.
state
.
userinfos
&&
this
.
$store
.
state
.
userinfos
.
isAllPerm
)
{
// 不是全部权限dashboard下方的模块不展示
this
.
getDisposal
()
this
.
getDisposal
()
this
.
getHouthMonth
()
this
.
getHouthMonth
()
...
@@ -982,11 +980,16 @@ export default {
...
@@ -982,11 +980,16 @@ export default {
* 判断是否开启自定义字段
* 判断是否开启自定义字段
*/
*/
getConfig
(){
getConfig
(){
console
.
log
(
1
)
this
.
$ajax
.
get
({
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_CONFIG
,
url
:
this
.
$api
.
GET_CONFIG
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
)
{
if
(
res
.
code
===
'200'
)
{
console
.
log
(
2
)
this
.
openConfig
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[]).
customKeyEnable
this
.
openConfig
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[]).
customKeyEnable
console
.
log
(
this
.
openConfig
)
// 是否开启自定义字段存入cookie
// 是否开启自定义字段存入cookie
this
.
$cookie
.
set
(
'customKeyEnable'
,
this
.
openConfig
)
this
.
$cookie
.
set
(
'customKeyEnable'
,
this
.
openConfig
)
let
isXuHui
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
let
isXuHui
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
...
...
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