@@ -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())
@@ -101,6 +101,7 @@ watch(
store.dispatch("audio/playBGM", 0);
+ setTimeout(() => store.dispatch("audio/pauseBGM"), 100);
});