Commit e6f24f11 authored by shangtx's avatar shangtx

feat: 使websocket不影响登录

parent 945c8cd3
......@@ -78,8 +78,11 @@ const user = {
commit('SET_NAME', data.userInfo.realName || data.userInfo.username);
commit('SET_AVATAR', data.userInfo.avatar);
commit('SET_BUTTONS', buttonAuthList);
try {
SocketService.init()
} catch (e) {
console.error(e)
}
resolve(response)
......
<template>
<table-template :soul="this">
<template #preview="{ record }">
<a @click="preview(record.url)"><a-icon type="eye" /></a>
</template>
<template #switch="{ record, index }">
<a-switch
:checked="dataSource[index].enabled"
......@@ -32,12 +29,6 @@ import BannerEdit from './BannerEdit.vue'
const columns = [
{ title: '描述', dataIndex: 'description' },
{ title: '排序号', dataIndex: 'showOrder', width: 120 },
{
title: '预览',
width: 120,
align: 'center',
scopedSlots: { customRender: 'preview' }
},
{
title: '启用/禁用',
width: 120,
......@@ -85,9 +76,6 @@ export default {
edit(id) {
this.$refs.BannerEdit.show(id)
},
preview(value) {
console.info(value)
},
deleteRow(id) {
const _this = this
this.$confirm({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment