fix:fix site info
This commit is contained in:
@@ -573,7 +573,7 @@
|
||||
<div class="time-info">{{ scope.row.become_time }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" prop="plan_name" width="80" />
|
||||
<el-table-column label="规格" prop="name" width="80" />
|
||||
<el-table-column label="用户ID" prop="user_id" width="80" />
|
||||
<el-table-column label="状态" width="100" align="center">
|
||||
<template #default="scope">
|
||||
@@ -1025,6 +1025,9 @@ const totalTrafficErrorMessage = ref('');
|
||||
|
||||
// 返回按钮功能
|
||||
const goBack = () => {
|
||||
// 标记返回操作
|
||||
sessionStorage.setItem('serverDetailFrom', 'back');
|
||||
sessionStorage.setItem('serverDetailTimestamp', Date.now().toString());
|
||||
router.back();
|
||||
};
|
||||
|
||||
@@ -1234,18 +1237,6 @@ const initData = async () => {
|
||||
let cons = await getContainer(containerBox);
|
||||
if (cons && cons.data) {
|
||||
user_servers.value = cons.data.data || [];
|
||||
for (const item of user_servers.value){
|
||||
try{
|
||||
const res = await selectServerPlan({
|
||||
server_type: 'dockerContainer',
|
||||
plan_id: item.plan_id
|
||||
})
|
||||
item.plan_name = res.data.data.name;
|
||||
}catch(error){
|
||||
console.error("获取容器列表失败:", error);
|
||||
ElMessage.error("获取容器列表失败");
|
||||
}
|
||||
}
|
||||
total.value = cons.data.count || 0;
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user