Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
baf7083c
Commit
baf7083c
authored
Jan 07, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传修改
parent
5df26017
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
2 deletions
+38
-2
index.js
gassafetyprogress-web/src/router/index.js
+5
-0
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+31
-0
index.vue
gassafetyprogress-web/src/views/index.vue
+0
-1
login.vue
gassafetyprogress-web/src/views/login.vue
+2
-1
No files found.
gassafetyprogress-web/src/router/index.js
View file @
baf7083c
...
...
@@ -53,6 +53,11 @@ export const constantRoutes = [
component
:
(
resolve
)
=>
require
([
'@/views/error/401'
],
resolve
),
hidden
:
true
},
{
path
:
'/bigWindow'
,
component
:
(
resolve
)
=>
require
([
'@/views/bigWindow'
],
resolve
),
hidden
:
true
},
{
path
:
''
,
component
:
Layout
,
...
...
gassafetyprogress-web/src/views/bigWindow/index.vue
0 → 100644
View file @
baf7083c
<!--
* @Author: your name
* @Date: 2022-01-07 13:36:55
* @LastEditTime: 2022-01-07 14:32:07
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafetyprogress-web/src/views/bigWindow/index.vue
-->
<
template
>
<div
>
<div>
big window
</div>
<button
class=
"go"
@
click=
"goIndex"
>
go index
</button>
</div>
</
template
>
<
script
>
export
default
{
methods
:{
goIndex
(){
this
.
$router
.
push
(
'/index'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.go
{
cursor
:
pointer
;
}
</
style
>
>
gassafetyprogress-web/src/views/index.vue
View file @
baf7083c
...
...
@@ -33,7 +33,6 @@
云产品通用红包,可叠加官网常规优惠使用。(仅限新用户)
</h4>
</blockquote>
<hr
/>
</el-col>
</el-row>
...
...
gassafetyprogress-web/src/views/login.vue
View file @
baf7083c
...
...
@@ -88,6 +88,7 @@ export default {
$route
:
{
handler
:
function
(
route
)
{
this
.
redirect
=
route
.
query
&&
route
.
query
.
redirect
;
},
immediate
:
true
}
...
...
@@ -127,7 +128,7 @@ export default {
Cookies
.
remove
(
'rememberMe'
);
}
this
.
$store
.
dispatch
(
"Login"
,
this
.
loginForm
).
then
(()
=>
{
this
.
$router
.
push
({
path
:
this
.
redirect
||
"/"
}).
catch
(()
=>
{});
this
.
$router
.
push
({
path
:
"/bigWindow"
||
"/"
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
this
.
loading
=
false
;
this
.
getCode
();
...
...
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