fix: 🐛 修改部分已知的Bug

master
Yer 2023-09-25 10:05:41 +08:00
parent ed72c2ffc2
commit ef92bcfe3a
2 changed files with 14 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<model-form ref="modelForm" :data="modelForm"></model-form> <model-form ref="modelForm" :data="modelForm"></model-form>
</div> </div>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="btn-bar"> <div class="btn-bar" :class="{'top':isHiddenBar}">
<Button type="primary" :loading="submitLoading" @click="saveTemplate"></Button> <Button type="primary" :loading="submitLoading" @click="saveTemplate"></Button>
<Button class="ml_10" @click="resetTemplate"></Button> <Button class="ml_10" @click="resetTemplate"></Button>
<Button class="ml_10" @click="witeLocalStore"></Button> <Button class="ml_10" @click="witeLocalStore"></Button>
@ -35,6 +35,8 @@ export default {
ModelForm, ModelForm,
}, },
mounted() { mounted() {
const setting = window.localStorage.getItem('admin-setting') ? JSON.parse(window.localStorage.getItem('admin-setting')) : {};
this.isHiddenBar = setting.isUseTabsRouter
// //
const cache = this.getStore('managerPCPageCache') const cache = this.getStore('managerPCPageCache')
this.hasCache = !!cache; this.hasCache = !!cache;
@ -71,6 +73,7 @@ export default {
modelData, // modelData, //
modelForm: { list: [] }, // modelForm: { list: [] }, //
submitLoading: false, // submitLoading: false, //
isHiddenBar:true,
}; };
}, },
methods: { methods: {
@ -219,6 +222,9 @@ export default {
padding: 10px; padding: 10px;
box-shadow: 1px 1px 10px #999; box-shadow: 1px 1px 10px #999;
z-index: 99; z-index: 99;
}
.top{
top: 100px; top: 100px;
} }
</style> </style>

View File

@ -23,7 +23,7 @@
<model-form ref="modelForm" :data="modelForm"></model-form> <model-form ref="modelForm" :data="modelForm"></model-form>
</div> </div>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="btn-bar"> <div class="btn-bar" :class="{'top':isHiddenBar}">
<Button type="primary" :loading="submitLoading" @click="saveTemplate" <Button type="primary" :loading="submitLoading" @click="saveTemplate"
>保存模板</Button >保存模板</Button
> >
@ -44,6 +44,8 @@ export default {
ModelForm, ModelForm,
}, },
mounted() { mounted() {
const setting = window.localStorage.getItem('admin-setting') ? JSON.parse(window.localStorage.getItem('admin-setting')) : {};
this.isHiddenBar = setting.isUseTabsRouter
// //
const cache = this.getStore('sellerPCPageCache') const cache = this.getStore('sellerPCPageCache')
this.hasCache = !!cache; this.hasCache = !!cache;
@ -80,6 +82,7 @@ export default {
modelData, // modelData, //
modelForm: { list: [] }, // modelForm: { list: [] }, //
submitLoading: false, // submitLoading: false, //
isHiddenBar:true,
}; };
}, },
methods: { methods: {
@ -225,4 +228,7 @@ export default {
z-index: 99; z-index: 99;
top: 100px; top: 100px;
} }
.top{
top: 100px;
}
</style> </style>