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
02744b80
Commit
02744b80
authored
Apr 15, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Plain Diff
--
parents
5337c8a5
415229be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
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
No files found.
public/index.html
View file @
02744b80
...
...
@@ -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 @
02744b80
...
...
@@ -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 @
02744b80
...
...
@@ -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 @
02744b80
...
...
@@ -55,9 +55,6 @@
return
{
showFields
:
[
'url'
,
'uuid'
],
currentItem
:
null
,
uploadHeaders
:
{
authorization
:
'Bearer '
+
window
[
'zeroing_token'
],
},
}
},
computed
:
{
...
...
src/views/Editor/Views.vue
View file @
02744b80
...
...
@@ -88,9 +88,6 @@
children
:
'children'
,
label
:
'name'
},
uploadHeaders
:
{
authorization
:
'Bearer '
+
window
[
'zeroing_token'
],
},
expandedKeys
:
[],
nodeFilterPresets
:
this
.
$t
(
'nodeFilterPresets'
),
iconMap
:
{
...
...
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