|
@@ -93,12 +93,12 @@ const roomList = computed(() => [addMarked, ...roomStore.filter(keyword.value)])
|
|
|
|
|
|
const deleteRoom = (room: Room) => {
|
|
|
Modal.confirm({
|
|
|
- content: '删除后无法恢复,是否确认?',
|
|
|
- title: '删除作品',
|
|
|
+ content: t('room.deletedScenesWaring'),
|
|
|
+ title: t('room.deletedScenes'),
|
|
|
width: '400px',
|
|
|
- okText: '删除',
|
|
|
+ okText: t('base.delete'),
|
|
|
icon: null,
|
|
|
- cancelText: '取消',
|
|
|
+ cancelText: t('base.cancel'),
|
|
|
onOk: () => roomStore.delete(room)
|
|
|
})
|
|
|
}
|
|
@@ -109,12 +109,12 @@ const shareRoom = async (room: Room) => {
|
|
|
const m = scenes.sceneData[0].num
|
|
|
Modal.confirm({
|
|
|
content: createVNode(Share, { room, num: m }),
|
|
|
- title: '分享',
|
|
|
+ title: t('base.share'),
|
|
|
icon: null,
|
|
|
width: '500px',
|
|
|
- okText: '复制链接',
|
|
|
+ okText: t('room.copyLink'),
|
|
|
appContext: app._context,
|
|
|
- cancelText: '取消',
|
|
|
+ cancelText: t('base.cancel'),
|
|
|
onOk: async () => {
|
|
|
const link = roomStore.getShareUrl({
|
|
|
roomId: room.id,
|
|
@@ -123,7 +123,7 @@ const shareRoom = async (room: Room) => {
|
|
|
isTour: '1'
|
|
|
})
|
|
|
await copyText(link)
|
|
|
- message.success('链接复制成功')
|
|
|
+ message.success(t('room.linkCopySuccess'))
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -171,7 +171,7 @@ const editRoom = async (room?: Room) => {
|
|
|
if (room) {
|
|
|
await roomStore.setRoomScenes(room)
|
|
|
if (room.roomStatus === 1) {
|
|
|
- message.error('房间直播中, 请先关闭直播再修改 !')
|
|
|
+ message.error(t('room.roomOnfired'))
|
|
|
return
|
|
|
}
|
|
|
}
|
|
@@ -184,7 +184,7 @@ const editRoom = async (room?: Room) => {
|
|
|
} else {
|
|
|
await roomStore.insert(actionRoom)
|
|
|
}
|
|
|
- message.success('保存成功')
|
|
|
+ message.success(t('base.saveSuccess'))
|
|
|
}
|
|
|
})
|
|
|
}
|