gemercheung 2 years ago
parent
commit
e5eb11348c

+ 2 - 2
packages/qjkankan-editor/src/views/material/popup/rename.vue

@@ -48,13 +48,13 @@ export default {
         } else {
           return char;
         }
-      }).replace(/\s+/g,'');
+      });
     },
     emitname() {
       if (!this.key.trim()) {
         return this.$alert({ content: "请输入名字" });
       }
-      this.$emit('rename', this.key)
+      this.$emit('rename', String(this.key).trim())
     }
   }
 }

+ 1 - 0
packages/qjkankan-view/src/components/Pano/index.vue

@@ -101,6 +101,7 @@ watch(
               store.dispatch("audio/playBGM", 0);
             }
           } else {
+            setTimeout(() => store.dispatch("audio/pauseBGM"), 100);
           }
         }
       });