提交 b23dd3d8 authored 作者: wangjiahao's avatar wangjiahao

refactor: 主题名称修改优化

上级 f4e07fc8
......@@ -296,7 +296,7 @@ function fillPositionBox(maxY) {
function removeItemFromPositionBox(item) {
const pb = positionBox
// console.log('removeItem=>x:' + item.x + ';y:' + item.y + ';sizex:' + item.sizex + ';sizey:' + item.sizey)
if (item.x <= 0 || item.y <= 0) return
if (!item || item.x <= 0 || item.y <= 0) return
for (let i = item.x - 1; i < item.x - 1 + item.sizex; i++) {
for (let j = item.y - 1; j < item.y - 1 + item.sizey; j++) {
if (pb[j][i]) {
......
......@@ -55,7 +55,7 @@ export default {
created() {
this.restore()
// 全局监听按键事件
listenGlobalKeyDown()
// listenGlobalKeyDown()
},
methods: {
restore() {
......
......@@ -12,7 +12,7 @@
<el-col :span="20">
<el-row id="slider">
<div class="window">
<ul class="container" :style="containerStyle">
<ul v-if="!slidersLoading" class="container" :style="containerStyle">
<li>
<div style="width:240px; height: 208px;overflow: hidden">
<subject-template-item
......@@ -156,6 +156,7 @@ export default {
querySubjectWithGroup() {
this.slidersLoading = true
querySubjectWithGroup({}).then(response => {
this.sliders = []
this.sliders = response.data
this.slidersLoading = false
}).catch(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论