fix(组件:微信视频号): 出现多个视频号组件时,从第二个开始无法拖拽排序
This commit is contained in:
@@ -483,7 +483,7 @@ Vue.component("wechat_channel-edit", {
|
|||||||
initSortable: function () {
|
initSortable: function () {
|
||||||
// 检查Sortable库是否已加载
|
// 检查Sortable库是否已加载
|
||||||
if (typeof Sortable !== 'undefined') {
|
if (typeof Sortable !== 'undefined') {
|
||||||
const videoList = document.getElementById('videoListEdit');
|
const videoList = this.$el.querySelector('.video-list-edit');
|
||||||
if (videoList) {
|
if (videoList) {
|
||||||
// 销毁现有实例
|
// 销毁现有实例
|
||||||
if (this.sortableInstance) {
|
if (this.sortableInstance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user