Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
eee46766
Commit
eee46766
authored
Apr 04, 2023
by
白舜
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(注册): 组件名称规范,修复注册页传参错误
parent
ece503dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
src/App.vue
src/App.vue
+6
-6
src/page/login/index.vue
src/page/login/index.vue
+1
-1
src/page/register/index.vue
src/page/register/index.vue
+7
-3
src/router/index.js
src/router/index.js
+4
-4
No files found.
src/App.vue
View file @
eee46766
...
...
@@ -20,9 +20,9 @@
<login></login>
</div>
</div>
<div
class=
"container"
v-else-if=
"$route.path == '/registe'"
>
<div
class=
"container"
v-else-if=
"$route.path == '/registe
r
'"
>
<div
class=
"bg-main view"
>
<registe
></registe
>
<registe
r></register
>
</div>
</div>
<div
class=
"container"
v-else-if=
"$route.path == '/password'"
>
...
...
@@ -44,14 +44,14 @@
import
bgMenu
from
"
@/components/bg-menu.vue
"
;
import
login
from
"
@/page/login/index.vue
"
;
import
page404
from
"
@/page/404.vue
"
;
import
registe
from
"
@/page/registe
/index.vue
"
;
import
registe
r
from
"
@/page/register
/index.vue
"
;
import
password
from
"
@/page/password/index.vue
"
;
export
default
{
components
:
{
bgMenu
,
login
,
page404
,
registe
,
registe
r
,
password
,
},
computed
:
{
...
...
@@ -68,10 +68,10 @@ export default {
return
this
.
$store
.
state
.
menuObj
;
},
navShow
()
{
return
false
||
!
[
"
/
"
,
"
/404
"
,
"
/login
"
,
"
/registe
"
,
"
/password
"
].
includes
(
this
.
$route
.
path
);
return
false
||
!
[
"
/
"
,
"
/404
"
,
"
/login
"
,
"
/registe
r
"
,
"
/password
"
].
includes
(
this
.
$route
.
path
);
},
pageShow
()
{
return
false
||
!
[
"
/404
"
,
"
/login
"
,
"
/registe
"
,
"
/password
"
].
includes
(
this
.
$route
.
path
);
return
false
||
!
[
"
/404
"
,
"
/login
"
,
"
/registe
r
"
,
"
/password
"
].
includes
(
this
.
$route
.
path
);
},
rowPath
()
{
if
(
this
.
pageShow
&&
this
.
$store
.
state
.
userInfo
)
{
...
...
src/page/login/index.vue
View file @
eee46766
...
...
@@ -61,7 +61,7 @@ const loginTab = ref("account");
const
configOptions
=
ref
({});
const
switchPageType
=
(
type
)
=>
{
// pageType.value = type
router
.
push
(
"
/registe
"
);
router
.
push
(
"
/registe
r
"
);
};
const
password
=
()
=>
{
router
.
push
(
"
/password
"
);
...
...
src/page/registe/index.vue
→
src/page/registe
r
/index.vue
View file @
eee46766
...
...
@@ -35,9 +35,9 @@
<el-select
v-model=
"infoForm.develop_id"
placeholder=
"请选择"
filterable
style=
"width: 100%"
>
<el-option
v-for=
"item in developList"
:key=
"'develop_' + item.id"
:key=
"'develop_' + item.
dict_
id"
:label=
"item.dict_name"
:value=
"item.id"
/>
:value=
"item.
dict_
id"
/>
<template
#empty
>
<div
class=
"select-empty"
>
<div>
无匹配数据
</div>
...
...
@@ -62,7 +62,11 @@
<div
class=
"msg-code"
>
<el-input
v-model=
"infoForm.code"
placeholder=
"请输入"
style=
"860px"
>
</el-input>
<div
class=
"yzm_img"
>
<el-button
type=
"primary"
style=
"width: 100%; height: 34px"
@
click=
"sendSms"
:disabled=
"countDown > 0"
>
<el-button
type=
"primary"
style=
"width: 100%; height: 34px"
@
click=
"sendSms"
:disabled=
"countDown > 0"
>
{{ countDown > 0 ? countDown + "秒后再次获取" : "发送验证码" }}
</el-button>
</div>
...
...
src/router/index.js
View file @
eee46766
...
...
@@ -13,10 +13,10 @@ const routes = [
component
:
()
=>
import
(
"
../page/login/index.vue
"
),
},
{
path
:
"
/registe
"
,
name
:
"
registe
"
,
path
:
"
/registe
r
"
,
name
:
"
registe
r
"
,
show
:
true
,
component
:
()
=>
import
(
"
../page/registe/index.vue
"
),
component
:
()
=>
import
(
"
../page/registe
r
/index.vue
"
),
},
{
path
:
"
/password
"
,
...
...
@@ -48,7 +48,7 @@ const router = newRouterFunc();
function
inWhiteList
(
toPath
)
{
//配置白名单
const
whiteList
=
[
"
/login
"
,
"
/registe
"
,
"
/password
"
];
const
whiteList
=
[
"
/login
"
,
"
/registe
r
"
,
"
/password
"
];
const
path
=
whiteList
.
find
((
value
)
=>
{
// 使用正则匹配
const
reg
=
new
RegExp
(
"
^
"
+
value
);
...
...
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