|
@@ -6,8 +6,8 @@
|
|
|
<div class="dialog_title">{{ props.title }}</div>
|
|
|
<p class="dialog_desc">{{ props.desc }}</p>
|
|
|
<div class="created_btn">
|
|
|
- <div class="end_cancel" @click="endLiveCancel">取消</div>
|
|
|
- <div class="end_confirm" @click="endLiveConfirm">立即结束</div>
|
|
|
+ <div class="end_cancel" @click="endLiveCancel">{{ t('base.cancel') }}</div>
|
|
|
+ <div class="end_confirm" @click="endLiveConfirm">{{ t('base.endNow') }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -17,19 +17,28 @@
|
|
|
<script setup>
|
|
|
import browser from '/@/utils/browser';
|
|
|
import { onMounted, watch, defineProps, defineEmits, ref, computed } from 'vue';
|
|
|
+ import { useI18n } from '/@/hooks/useI18n';
|
|
|
|
|
|
const emit = defineEmits(['closeDialog', 'confirmDialog']);
|
|
|
|
|
|
+ const { t } = useI18n();
|
|
|
+
|
|
|
const role = ref(browser.urlHashValue('role'));
|
|
|
|
|
|
const props = defineProps({
|
|
|
title: {
|
|
|
type: String,
|
|
|
- default: '温馨提示',
|
|
|
+ default: () => {
|
|
|
+ const { t } = useI18n();
|
|
|
+ return t('base.tips');
|
|
|
+ },
|
|
|
},
|
|
|
desc: {
|
|
|
type: String,
|
|
|
- default: '是否结束带看?',
|
|
|
+ default: () => {
|
|
|
+ const { t } = useI18n();
|
|
|
+ return t('base.endRoom');
|
|
|
+ },
|
|
|
},
|
|
|
});
|
|
|
|