后端管理模块部署
This commit is contained in:
@@ -45,10 +45,6 @@
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<div class="login-footer">
|
||||
<p>默认账号: admin / admin123</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -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) {
|
||||
// 处理流式请求
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user