|
|
@ -1110,6 +1110,11 @@ export default { |
|
|
return `${y}-${m}-${day} ${h}:${min}:${s}`; |
|
|
return `${y}-${m}-${day} ${h}:${min}:${s}`; |
|
|
}, |
|
|
}, |
|
|
openKTimeSetDialog() { |
|
|
openKTimeSetDialog() { |
|
|
|
|
|
console.log("当前登录 ID (myId):", this.$store.getters.id); |
|
|
|
|
|
|
|
|
|
|
|
console.log("当前房间 ownerId:", this.roomDetail ? this.roomDetail.ownerId : '无房间信息'); |
|
|
|
|
|
|
|
|
|
|
|
console.log("当前角色 roles:", this.$store.getters.roles); |
|
|
if (!this.canSetKTime) { |
|
|
if (!this.canSetKTime) { |
|
|
this.$message.info('仅房主或管理员可设定或修改 K 时'); |
|
|
this.$message.info('仅房主或管理员可设定或修改 K 时'); |
|
|
return; |
|
|
return; |
|
|
|