diff --git a/package.json b/package.json index aa1c7deb0adb6e6aea5a1380426189ac24eee7a7..a742aeefcc55c29e470e377e168ae457b283539c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ }, "dependencies": { "guess": "^1.0.2", - "vue": "^3.2.37" + "vue": "^3.2.37", + "vue-router": "^4.2.2" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", diff --git a/src/App.vue b/src/App.vue index b257cc3172594fff44809f6f783077b9c0b99335..000d31f7f7fbfaceba4c44818baa43254abfa2eb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,12 +15,6 @@ nextTick(() => { if(isWebPlatform()) initDrag() else initDrag1() }) -/* -注意事项: -1. 父元素的宽高、元素在其内内移动。 -2. 拖拽和点击事件的冲突解决、使用时间戳 -3. 图片拖拽时候不可拖拽、阻止默认事件 -* */ //pc端 let time = 0 @@ -129,13 +123,12 @@ const isWebPlatform = ()=> {