Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart-office-platform
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-office-platform
Commits
d9e8f826
Commit
d9e8f826
authored
May 29, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同步用户
parent
9729d64a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
38 deletions
+5
-38
smart-office-manager-ui/admin/src/components/Header.vue
smart-office-manager-ui/admin/src/components/Header.vue
+1
-33
smart-office-manager-ui/admin/src/router.js
smart-office-manager-ui/admin/src/router.js
+0
-1
smart-office-manager-ui/admin/src/views/login/login.vue
smart-office-manager-ui/admin/src/views/login/login.vue
+4
-4
No files found.
smart-office-manager-ui/admin/src/components/Header.vue
View file @
d9e8f826
...
@@ -94,39 +94,6 @@ export default {
...
@@ -94,39 +94,6 @@ export default {
//window.removeEventListener("message", this.getsocketData, false);
//window.removeEventListener("message", this.getsocketData, false);
},
},
mounted
()
{
mounted
()
{
// console.log("mounted");
// this.$nextTick(function () {
// console.log("login websocket:"+"ws://"+process.env.VUE_APP_WEBSOCKET_API +"/ws?accessToken="+ this.$store.state.userData.id)
// createSocket(
// "ws://" +
// process.env.VUE_APP_WEBSOCKET_API +
// "/ws?accessToken=" +
// this.$store.state.userData.id
// );
// });
// let _this = this;
// const getsocketData = (e) => {i
// // 创建接收消息函数
// const data = e && e.detail.data;
// let obj = JSON.parse(data);
// if (obj.type == "SEND_TO_ALL_REQUEST") {
// vm.refreshData();
// let content = JSON.parse(obj.body.content);
// _this.$notify({
// title: "警告",
// message: content,
// type: "warning",
// duration: 8000,
// });
// }
// };
// this.getsocketData = getsocketData;
// // 注册监听事件
// window.addEventListener("onmessageWS", getsocketData,false);
},
},
computed
:
{
computed
:
{
...
@@ -151,6 +118,7 @@ export default {
...
@@ -151,6 +118,7 @@ export default {
return
this
.
userData
.
flat
return
this
.
userData
.
flat
},
},
menu
()
{
menu
()
{
console
.
log
(
"
userData
"
,
this
.
userData
)
if
(
!
this
.
userData
.
barList
)
return
[];
if
(
!
this
.
userData
.
barList
)
return
[];
return
this
.
userData
.
barList
.
map
(
item
=>
{
return
this
.
userData
.
barList
.
map
(
item
=>
{
const
url
=
item
.
url
?
item
.
url
:
(
item
.
childList
[
0
]
?
(
item
.
childList
[
0
].
url
||
''
)
:
''
);
const
url
=
item
.
url
?
item
.
url
:
(
item
.
childList
[
0
]
?
(
item
.
childList
[
0
].
url
||
''
)
:
''
);
...
...
smart-office-manager-ui/admin/src/router.js
View file @
d9e8f826
...
@@ -39,7 +39,6 @@ const router = new Router({
...
@@ -39,7 +39,6 @@ const router = new Router({
...
restBuilder
(
'
task
'
,
'
system/task
'
),
// 系统管理--任务管理
...
restBuilder
(
'
task
'
,
'
system/task
'
),
// 系统管理--任务管理
...
restBuilder
(
'
metting/record
'
,
'
metting/record
'
),
//会议记录
...
restBuilder
(
'
metting/record
'
,
'
metting/record
'
),
//会议记录
...
restBuilder
(
'
gocome/record
'
,
'
gocome/record
'
),
//往来记录
...
restBuilder
(
'
gocome/record
'
,
'
gocome/record
'
),
//往来记录
...
restBuilder
(
'
room
'
,
'
room
'
),
//房间管理
...
restBuilder
(
'
room
'
,
'
room
'
),
//房间管理
...
...
smart-office-manager-ui/admin/src/views/login/login.vue
View file @
d9e8f826
...
@@ -38,10 +38,10 @@ export default {
...
@@ -38,10 +38,10 @@ export default {
},
},
loginSuccess
({
data
})
{
loginSuccess
({
data
})
{
this
.
$store
.
commit
(
"
setUserData
"
,
data
);
this
.
$store
.
commit
(
"
setUserData
"
,
data
);
this
.
$router
.
push
(
'
/index
'
)
// 有token直接跳转首页
console
.
log
(
"
userData
"
,
this
.
$store
.
state
.
userData
)
//
this.$router.replace({
this
.
$router
.
replace
({
//
path: this.redirect,
path
:
this
.
redirect
,
//
});
});
},
},
loginFail
(
error
)
{
loginFail
(
error
)
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
...
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