set the enable status for adding new api key with default value true

This commit is contained in:
RockYang
2024-04-07 10:17:10 +08:00
parent 1a3ad390fd
commit e87e7e2164
6 changed files with 845 additions and 36 deletions

View File

@@ -215,7 +215,7 @@ httpGet('/api/admin/apikey/list').then((res) => {
const add = function () {
showDialog.value = true
title.value = "新增 API KEY"
item.value = {}
item.value = {enabled: true}
}
const edit = function (row) {

View File

@@ -52,7 +52,7 @@ import {setAdminToken} from "@/store/session";
import {checkAdminSession} from "@/action/session";
const router = useRouter();
const title = ref('ChatGPT Plus Admin');
const title = ref('Geek-AI 控制台登录');
const username = ref(process.env.VUE_APP_ADMIN_USER);
const password = ref(process.env.VUE_APP_ADMIN_PASS);