update: 更新配置文件

This commit is contained in:
ctwj
2025-07-26 00:32:02 +08:00
parent f0e5c93a48
commit a5c5e41cc4
5 changed files with 11 additions and 10 deletions

1
.gitignore vendored
View File

@@ -15,6 +15,7 @@ go.work.sum
.env
.env.local
.env.*.local
!web/.env
web/.output/
# IDE

View File

@@ -490,13 +490,13 @@ func (s *Scheduler) convertReadyResourceToResource(readyResource entity.ReadyRes
return nil
}
// getOrCreateCategory 获取或创建分类
func (s *Scheduler) getOrCreateCategory(categoryName string) (uint, error) {
// 这里需要实现分类的查找和创建逻辑
// 由于没有CategoryRepository的注入这里先返回0
// 你可以根据需要添加CategoryRepository的依赖
return 0, nil
}
// // getOrCreateCategory 获取或创建分类
// func (s *Scheduler) getOrCreateCategory(categoryName string) (uint, error) {
// // 这里需要实现分类的查找和创建逻辑
// // 由于没有CategoryRepository的注入这里先返回0
// // 你可以根据需要添加CategoryRepository的依赖
// return 0, nil
// }
// initPanCache 初始化平台映射缓存
func (s *Scheduler) initPanCache() {

2
web/.env Normal file
View File

@@ -0,0 +1,2 @@
NUXT_PUBLIC_API_CLIENT=http://localhost:8080/api
NUXT_PUBLIC_API_SERVER=http://localhost:8080/api

2
web/components.d.ts vendored
View File

@@ -11,9 +11,7 @@ declare module 'vue' {
NA: typeof import('naive-ui')['NA']
NAlert: typeof import('naive-ui')['NAlert']
NButton: typeof import('naive-ui')['NButton']
NIcon: typeof import('naive-ui')['NIcon']
NInput: typeof import('naive-ui')['NInput']
NInputGroup: typeof import('naive-ui')['NInputGroup']
NSelect: typeof import('naive-ui')['NSelect']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']

View File

@@ -51,7 +51,7 @@ export default defineNuxtConfig({
},
runtimeConfig: {
public: {
apiBase: process.env.NUXT_PUBLIC_API_CLIENT || 'http://localhost:8080/api',
apiBase: process.env.NUXT_PUBLIC_API_CLIENT || '/api',
apiServer: process.env.NUXT_PUBLIC_API_SERVER || 'http://localhost:8080/api'
}
},