优化达人页面
This commit is contained in:
@@ -129,6 +129,7 @@
|
||||
|
||||
<script setup>
|
||||
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { getUser } from '@/utils/storage';
|
||||
import { expertInfoPage } from '@/api/account';
|
||||
@@ -151,6 +152,7 @@ const tableData = ref([]);
|
||||
const isRunning = ref(false);
|
||||
const elapsedSeconds = ref(0);
|
||||
const elapsedTimerId = ref(null);
|
||||
const { t } = useI18n();
|
||||
const { countryData, isLoading: isRefreshingCountry, initCountryInfo, refreshCountry, showEditCountryDialog } = useCountryInfo();
|
||||
const { controlExpertCapture } = usePythonBridge();
|
||||
|
||||
@@ -171,7 +173,7 @@ onMounted(() => {
|
||||
userInfo.value = getUser() || {};
|
||||
tenantId.value = String(userInfo.value?.tenantId || '');
|
||||
queryDate.value = buildTodayText();
|
||||
void initCountryInfo((key) => key);
|
||||
void initCountryInfo(t);
|
||||
void loadList();
|
||||
});
|
||||
|
||||
@@ -347,12 +349,12 @@ async function handleStop() {
|
||||
}
|
||||
|
||||
async function refreshCountryFn() {
|
||||
await refreshCountry((key) => key);
|
||||
await refreshCountry(t);
|
||||
}
|
||||
|
||||
async function editCountry() {
|
||||
try {
|
||||
await showEditCountryDialog((key) => key);
|
||||
await showEditCountryDialog(t);
|
||||
} catch {
|
||||
// 用户取消
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user