模块数据优化

This commit is contained in:
pushuo 2022-07-18 10:34:36 +08:00
parent f3f593ee9e
commit 3c366c7c6d
2 changed files with 2 additions and 5 deletions

View File

@ -133,10 +133,7 @@
// 组件方法
methods: {
moduleUpdated(module) {
const data = {
module: this.editingModuleCode,
content: this.form.modules[this.design.editingModuleIndex].content
};
const data = this.form.modules[this.design.editingModuleIndex]
$http.post('design/builder/preview', data, {hload: true}).then((res) => {
// layer.msg(res.message)

View File

@ -33,7 +33,7 @@
@push('add-scripts')
<script>
new Swiper ('.module-swiper-dasuybkdas', {
new Swiper ('.module-swiper-{{ $module_id }}', {
loop: true, // 循环模式选项
autoplay: true,
pauseOnMouseEnter: true,