|
@@ -660,17 +660,10 @@ export default {
|
|
|
* @param {string} param.type - 抽屉类型(0: 图片, 1: 音频, 2: 视频)
|
|
* @param {string} param.type - 抽屉类型(0: 图片, 1: 音频, 2: 视频)
|
|
|
*/
|
|
*/
|
|
|
openDrawer({ type }) {
|
|
openDrawer({ type }) {
|
|
|
- // if (this.drawerType === type) {
|
|
|
|
|
- // this.drawerType = '';
|
|
|
|
|
- // return;
|
|
|
|
|
- // }
|
|
|
|
|
- // this.drawerType = type;
|
|
|
|
|
- // this.$nextTick(() => {
|
|
|
|
|
- // this.cur_page = 1;
|
|
|
|
|
- // this.file_list = [];
|
|
|
|
|
- // this.loadMore();
|
|
|
|
|
- // });
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (this.drawerType === type) {
|
|
|
|
|
+ this.drawerType = '';
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
// 重置所有加载状态
|
|
// 重置所有加载状态
|
|
|
this.resetLoadState();
|
|
this.resetLoadState();
|
|
|
this.drawerType = type; // 假设这是你的类型变量
|
|
this.drawerType = type; // 假设这是你的类型变量
|