编辑国家 获取地区国家
This commit is contained in:
@@ -437,8 +437,16 @@ onMounted(async () => {
|
||||
})
|
||||
|
||||
// 编辑国家信息 - 使用共享 store
|
||||
const editCountry = () => {
|
||||
countryStore.showEditCountryDialog(t);
|
||||
const editCountry = async () => {
|
||||
try {
|
||||
const newCountry = await countryStore.showEditCountryDialog(t);
|
||||
// 确认后获取该国家的列表
|
||||
if (newCountry) {
|
||||
fetchCountryList(newCountry);
|
||||
}
|
||||
} catch {
|
||||
// 用户取消编辑
|
||||
}
|
||||
};
|
||||
|
||||
// 刷新国家信息 - 使用共享 store
|
||||
|
||||
Reference in New Issue
Block a user