Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
b33b3322
Commit
b33b3322
authored
Dec 29, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
教师页面跳转
parent
563f92e4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
index.vue
src/components/login/index.vue
+2
-1
index.vue
src/components/teacher/index.vue
+3
-2
index.vue
src/components/teacherDetail/index.vue
+1
-1
No files found.
src/components/login/index.vue
View file @
b33b3322
...
...
@@ -62,7 +62,8 @@
};
loginApi
(
json
).
then
(
res
=>
{
if
(
res
.
teacher_info
){
localStorage
.
setItem
(
"phoneNum"
,
res
.
teacher_info
)
let
data
=
JSON
.
stringify
(
res
.
teacher_info
)
localStorage
.
setItem
(
"phoneNum"
,
data
)
}
else
{
localStorage
.
setItem
(
"phoneNum"
,
""
)
}
...
...
src/components/teacher/index.vue
View file @
b33b3322
...
...
@@ -130,9 +130,10 @@
},
mounted
(){
let
data
=
localStorage
.
getItem
(
"phoneNum"
)
data
=
JSON
.
parse
(
data
)
if
(
data
){
console
.
log
(
data
)
this
.
$router
.
push
(
'/teacher/'
+
data
);
console
.
log
(
data
.
id
)
this
.
$router
.
push
(
'/teacher/'
+
data
.
id
);
}
else
{
this
.
getUser
()
...
...
src/components/teacherDetail/index.vue
View file @
b33b3322
...
...
@@ -285,7 +285,7 @@
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"
4
00"
>
width=
"
2
00"
>
<div
style=
"text-align: center"
>
<el-button
@
click=
"editComment(scope.row.id, scope.row.desc)"
...
...
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