restore new ui files

This commit is contained in:
RockYang
2024-03-15 11:13:02 +08:00
344 changed files with 56769 additions and 887 deletions

View File

@@ -98,7 +98,7 @@ const capabilities = ref([
])
onMounted(() => {
httpGet("/api/admin/config/get?key=system").then(res => {
httpGet("/api/config/get?key=system").then(res => {
title.value = res.data.title
}).catch(e => {
ElMessage.error("获取系统配置失败:" + e.message)

View File

@@ -76,7 +76,7 @@ const login = function () {
}
httpPost('/api/admin/login', {username: username.value.trim(), password: password.value.trim()}).then(res => {
setAdminToken(res.data)
setAdminToken(res.data.token)
router.push("/admin")
}).catch((e) => {
ElMessage.error('登录失败,' + e.message)