mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-19 06:30:19 +08:00
:feat 新增模型配置页面和相关功能
- 新增模型配置页面组件和路由 - 实现模型配置表单和相关逻辑- 添加全局配置入口和功能- 优化首页布局和样式- 新增 404 页面组件 - 更新部分组件样式和结构
This commit is contained in:
9
BillNote_frontend/src/utils/index.ts
Normal file
9
BillNote_frontend/src/utils/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// 解析URL
|
||||
export function parseUrl(url: string): { protocol: string, host: string, path: string } {
|
||||
const urlObj = new URL(url);
|
||||
return {
|
||||
protocol: urlObj.protocol,
|
||||
host: urlObj.host,
|
||||
path: urlObj.pathname
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
import axios from "axios"
|
||||
import axios from 'axios'
|
||||
|
||||
const request = axios.create({
|
||||
baseURL: "/api", // 默认请求路径前缀
|
||||
timeout: 10000,
|
||||
baseURL: '/api', // 默认请求路径前缀
|
||||
timeout: 10000,
|
||||
})
|
||||
|
||||
export default request
|
||||
export default request
|
||||
|
||||
Reference in New Issue
Block a user