mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 19:37:33 +08:00
update: 更新配置文件
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -15,6 +15,7 @@ go.work.sum
|
|||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
|
!web/.env
|
||||||
web/.output/
|
web/.output/
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
|
|||||||
@@ -490,13 +490,13 @@ func (s *Scheduler) convertReadyResourceToResource(readyResource entity.ReadyRes
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// getOrCreateCategory 获取或创建分类
|
// // getOrCreateCategory 获取或创建分类
|
||||||
func (s *Scheduler) getOrCreateCategory(categoryName string) (uint, error) {
|
// func (s *Scheduler) getOrCreateCategory(categoryName string) (uint, error) {
|
||||||
// 这里需要实现分类的查找和创建逻辑
|
// // 这里需要实现分类的查找和创建逻辑
|
||||||
// 由于没有CategoryRepository的注入,这里先返回0
|
// // 由于没有CategoryRepository的注入,这里先返回0
|
||||||
// 你可以根据需要添加CategoryRepository的依赖
|
// // 你可以根据需要添加CategoryRepository的依赖
|
||||||
return 0, nil
|
// return 0, nil
|
||||||
}
|
// }
|
||||||
|
|
||||||
// initPanCache 初始化平台映射缓存
|
// initPanCache 初始化平台映射缓存
|
||||||
func (s *Scheduler) initPanCache() {
|
func (s *Scheduler) initPanCache() {
|
||||||
|
|||||||
2
web/.env
Normal file
2
web/.env
Normal 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
2
web/components.d.ts
vendored
@@ -11,9 +11,7 @@ declare module 'vue' {
|
|||||||
NA: typeof import('naive-ui')['NA']
|
NA: typeof import('naive-ui')['NA']
|
||||||
NAlert: typeof import('naive-ui')['NAlert']
|
NAlert: typeof import('naive-ui')['NAlert']
|
||||||
NButton: typeof import('naive-ui')['NButton']
|
NButton: typeof import('naive-ui')['NButton']
|
||||||
NIcon: typeof import('naive-ui')['NIcon']
|
|
||||||
NInput: typeof import('naive-ui')['NInput']
|
NInput: typeof import('naive-ui')['NInput']
|
||||||
NInputGroup: typeof import('naive-ui')['NInputGroup']
|
|
||||||
NSelect: typeof import('naive-ui')['NSelect']
|
NSelect: typeof import('naive-ui')['NSelect']
|
||||||
NTabPane: typeof import('naive-ui')['NTabPane']
|
NTabPane: typeof import('naive-ui')['NTabPane']
|
||||||
NTabs: typeof import('naive-ui')['NTabs']
|
NTabs: typeof import('naive-ui')['NTabs']
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
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'
|
apiServer: process.env.NUXT_PUBLIC_API_SERVER || 'http://localhost:8080/api'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user