Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service-admin-view
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
external
on-site-service-admin-view
Commits
e6f24f11
Commit
e6f24f11
authored
Jul 28, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 使websocket不影响登录
parent
945c8cd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
user.js
src/store/modules/user.js
+5
-2
BannerList.vue
src/views/banner/BannerList.vue
+0
-12
No files found.
src/store/modules/user.js
View file @
e6f24f11
...
@@ -78,8 +78,11 @@ const user = {
...
@@ -78,8 +78,11 @@ const user = {
commit
(
'SET_NAME'
,
data
.
userInfo
.
realName
||
data
.
userInfo
.
username
);
commit
(
'SET_NAME'
,
data
.
userInfo
.
realName
||
data
.
userInfo
.
username
);
commit
(
'SET_AVATAR'
,
data
.
userInfo
.
avatar
);
commit
(
'SET_AVATAR'
,
data
.
userInfo
.
avatar
);
commit
(
'SET_BUTTONS'
,
buttonAuthList
);
commit
(
'SET_BUTTONS'
,
buttonAuthList
);
try
{
SocketService
.
init
()
SocketService
.
init
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
resolve
(
response
)
resolve
(
response
)
...
...
src/views/banner/BannerList.vue
View file @
e6f24f11
<
template
>
<
template
>
<table-template
:soul=
"this"
>
<table-template
:soul=
"this"
>
<template
#
preview=
"
{ record }">
<a
@
click=
"preview(record.url)"
><a-icon
type=
"eye"
/></a>
</
template
>
<template
#
switch=
"
{ record, index }">
<template
#
switch=
"
{ record, index }">
<a-switch
<a-switch
:checked=
"dataSource[index].enabled"
:checked=
"dataSource[index].enabled"
...
@@ -32,12 +29,6 @@ import BannerEdit from './BannerEdit.vue'
...
@@ -32,12 +29,6 @@ import BannerEdit from './BannerEdit.vue'
const
columns
=
[
const
columns
=
[
{
title
:
'描述'
,
dataIndex
:
'description'
},
{
title
:
'描述'
,
dataIndex
:
'description'
},
{
title
:
'排序号'
,
dataIndex
:
'showOrder'
,
width
:
120
},
{
title
:
'排序号'
,
dataIndex
:
'showOrder'
,
width
:
120
},
{
title
:
'预览'
,
width
:
120
,
align
:
'center'
,
scopedSlots
:
{
customRender
:
'preview'
}
},
{
{
title
:
'启用/禁用'
,
title
:
'启用/禁用'
,
width
:
120
,
width
:
120
,
...
@@ -85,9 +76,6 @@ export default {
...
@@ -85,9 +76,6 @@ export default {
edit
(
id
)
{
edit
(
id
)
{
this
.
$refs
.
BannerEdit
.
show
(
id
)
this
.
$refs
.
BannerEdit
.
show
(
id
)
},
},
preview
(
value
)
{
console
.
info
(
value
)
},
deleteRow
(
id
)
{
deleteRow
(
id
)
{
const
_this
=
this
const
_this
=
this
this
.
$confirm
({
this
.
$confirm
({
...
...
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