Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
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
劳工
zeroing-editor
Commits
415229be
Commit
415229be
authored
Apr 15, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉压缩
parent
53b816a1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
11 deletions
+9
-11
index.html
public/index.html
+0
-1
App.vue
src/App.vue
+6
-2
config.js
src/config.js
+2
-1
Assets.vue
src/views/Editor/Assets.vue
+0
-3
Views.vue
src/views/Editor/Views.vue
+0
-3
PxSkinEditorDialog.vue
src/views/Editor/dialogs/PxSkinEditorDialog.vue
+1
-1
No files found.
public/index.html
View file @
415229be
...
...
@@ -16,7 +16,6 @@
</noscript>
<script>
window
.
__data
=
{
token
:
"<%= process.env.NODE_ENV === 'development' ? 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjA4NSwibmFtZSI6IuWKs-eQquWzsCIsImFjY291bnQiOiJsYW9xaWZlbmciLCJlbWFpbCI6Imxhb3FpZmVuZ0BkdWliYS5jb20uY24iLCJtb2JpbGUiOiIxMzQ1Njc3NDE1MyIsImRpbmdVc2VySWQiOiI1MDY5MDYyOTIxMjkxMDAxIiwibW9kZWxBdXRob3JpemUiOmZhbHNlLCJsb2dpblRpbWVvdXQiOjgzMzUzLCJnbXRDcmVhdGUiOjE1MzQ0MTIwMTUwMDAsImdtdE1vZGlmaWVkIjoxNTczODgyMDk2MDAwLCJzeXN0ZW1JZFNldCI6WzAsMSwzNCwyMjcsMzYsMzcsMjMxLDIwMyw0NCwxOSwyMSwyNDYsMjMsMjQ5LDI1LDI3LDMwXSwiaWF0IjoxNTc4Mjc3OTg5fQ.mm6T34NuMBwTKaLBbVOI5AqGQNC9rwfiAdIv8c4C4_I' : '$TOKEN$' %>"
,
apiHost
:
"<%= process.env.NODE_ENV === 'development' ? '//beacon.duibadev.com.cn' : '$API_HOST$' %>"
}
</script>
...
...
src/App.vue
View file @
415229be
...
...
@@ -11,6 +11,7 @@
<
script
>
import
i18n
from
"./i18n"
;
import
{
SSO_VERIFY_PAGE_URL
}
from
"./config"
;
import
{
getCookie
}
from
"./api/utils"
;
const
errorTipsArr
=
[
''
,
...
...
@@ -29,13 +30,15 @@
}
},
mounted
()
{
if
(
!
window
[
'zeroing_token'
])
{
let
sso_ticket
=
getCookie
(
'sso_ticket'
);
if
(
!
sso_ticket
)
{
this
.
dealError
(
1
);
}
},
computed
:
{
showErrorTips
()
{
return
!
window
[
'zeroing_token'
]
||
!
this
.
$route
.
matched
||
this
.
$route
.
matched
.
length
===
0
;
let
sso_ticket
=
getCookie
(
'sso_ticket'
);
return
!
sso_ticket
||
!
this
.
$route
.
matched
||
this
.
$route
.
matched
.
length
===
0
;
},
errorTipsStr
()
{
return
this
.
errorTips
+
' '
+
this
.
$t
(
'Jump after'
,
{
cd
:
this
.
cd
});
...
...
@@ -61,6 +64,7 @@
}
},
startCD
()
{
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(()
=>
{
if
(
this
.
cd
<=
0
)
{
clearInterval
(
this
.
timer
);
...
...
src/config.js
View file @
415229be
...
...
@@ -11,6 +11,7 @@ if (process.env.NODE_ENV === 'development') {
//API_HOST = '//localhost:3002';
//API_HOST = window.__data.apiHost;
//API_HOST = 'http://beacon.duiba.com.cn';
//API_HOST = 'http://beacon.duibadev.com.cn';
}
else
{
API_HOST
=
window
.
__data
.
apiHost
;
}
...
...
@@ -19,7 +20,7 @@ if (API_HOST[API_HOST.length - 1] === '/') {
API_HOST
=
API_HOST
.
substr
(
0
,
API_HOST
.
length
-
1
);
}
export
const
SSO_VERIFY_PAGE_URL
=
'/sso/log
out
'
;
export
const
SSO_VERIFY_PAGE_URL
=
'/sso/log
in
'
;
export
const
DOCK_POINT_OFFSET
=
4
;
...
...
src/views/Editor/Assets.vue
View file @
415229be
...
...
@@ -55,9 +55,6 @@
return
{
showFields
:
[
'url'
,
'uuid'
],
currentItem
:
null
,
uploadHeaders
:
{
authorization
:
'Bearer '
+
window
[
'zeroing_token'
],
},
}
},
computed
:
{
...
...
src/views/Editor/Views.vue
View file @
415229be
...
...
@@ -88,9 +88,6 @@
children
:
'children'
,
label
:
'name'
},
uploadHeaders
:
{
authorization
:
'Bearer '
+
window
[
'zeroing_token'
],
},
expandedKeys
:
[],
nodeFilterPresets
:
this
.
$t
(
'nodeFilterPresets'
),
iconMap
:
{
...
...
src/views/Editor/dialogs/PxSkinEditorDialog.vue
View file @
415229be
...
...
@@ -203,7 +203,7 @@
name
,
env
,
isProd
:
true
,
qas
:
[
921
],
qas
:
[
2085
],
};
const
{
ret
}
=
await
playWaiting
(
saveSkin
(
params
),
this
.
$t
(
'In processing'
));
if
(
ret
.
success
!==
false
)
{
...
...
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