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
42366be2
Commit
42366be2
authored
Jan 05, 2021
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改登陆页面跳转方式
parent
b69eb087
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
index.ts
app/web/component/layout/editor/index.ts
+1
-1
index.vue
app/web/component/layout/editor/index.vue
+1
-1
prod.config.ts
app/web/config/prod.config.ts
+1
-1
index.ts
app/web/page/editor/router/index.ts
+1
-1
No files found.
app/web/component/layout/editor/index.ts
View file @
42366be2
...
...
@@ -15,7 +15,7 @@ Vue.use(VueContextMenu);
})
export
default
class
Layout
extends
Vue
{
activeName
:
string
=
'
list
'
;
user
:
string
=
localStorage
.
get
(
'
user
'
)
;
user
name
:
string
=
localStorage
.
get
(
'
user
'
)?.
name
||
'
陌生人
'
;
get
isDashboard
()
{
return
this
.
activeName
===
'
detail
'
;
...
...
app/web/component/layout/editor/index.vue
View file @
42366be2
...
...
@@ -12,7 +12,7 @@
<i-col
:span=
"21"
class=
"layout-menu-right"
>
<div
class=
"layout-header"
>
<div
class=
"avator"
>
<span>
{{
user
.
name
}}
</span>
<span>
{{
username
}}
</span>
<span
@
click=
"logOut"
style=
"cursor: pointer;"
>
退出
</span>
</div>
</div>
...
...
app/web/config/prod.config.ts
View file @
42366be2
const
protocol
=
window
.
location
.
protocol
;
export
default
{
apiHost
:
`http
://172.20.3.77:80
/`
,
apiHost
:
`http
s://quantum-fe.liangkebang.net
/`
,
qiniuHost
:
`https://appsync.lkbang.net/`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=production`
,
opapiHost
:
`
${
protocol
}
//opapi.q-gp.com`
...
...
app/web/page/editor/router/index.ts
View file @
42366be2
...
...
@@ -51,7 +51,7 @@ export default function createRouter() {
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
if
(
to
.
path
!==
'
/login
'
)
{
if
(
!
localStorage
.
get
(
'
token
'
))
{
return
next
(
'
/login
'
)
;
return
window
.
location
.
href
=
'
/editor/login
'
;
}
}
...
...
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