后端管理模块部署

This commit is contained in:
2025-10-30 16:55:22 +08:00
parent 093d07ab76
commit 8f2133f3af
16 changed files with 649 additions and 52 deletions
-4
View File
@@ -45,10 +45,6 @@
</el-button>
</el-form-item>
</el-form>
<div class="login-footer">
<p>默认账号: admin / admin123</p>
</div>
</div>
</div>
</template>
+3 -2
View File
@@ -190,8 +190,9 @@ const fetchData = async () => {
size: pagination.size
}
const res = await getAdminPage(params)
tableData.value = res.data.records
pagination.total = res.data.total
const pageData = res.data as any
tableData.value = pageData.records
pagination.total = pageData.total
} catch (error) {
console.error('获取管理员列表失败:', error)
} finally {
@@ -1181,7 +1181,7 @@ const handleTestRequest = async () => {
}
// 检查是否为流式请求
const isStreamRequest = body.stream === true
const isStreamRequest = (body as any).stream === true
if (isStreamRequest) {
// 处理流式请求
+3 -2
View File
@@ -131,8 +131,9 @@ const fetchData = async () => {
size: pagination.size
}
const res = await getUserPage(params)
tableData.value = res.data.records
pagination.total = res.data.total
const pageData = res.data as any
tableData.value = pageData.records
pagination.total = pageData.total
} catch (error) {
console.error('获取用户列表失败:', error)
} finally {