Compare commits

...

2 Commits

Author SHA1 Message Date
手瓜一十雪
1b874a0264 fix: defaultHttpUrl 2025-01-25 20:00:24 +08:00
Mlikiowa
26525a0ff9 release: v4.4.9 2025-01-25 10:59:08 +00:00
4 changed files with 7 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
"name": "NapCatQQ",
"slug": "NapCat.Framework",
"description": "高性能的 OneBot 11 协议实现",
"version": "4.4.8",
"version": "4.4.9",
"icon": "./logo.png",
"authors": [
{

View File

@@ -28,7 +28,10 @@ export interface OneBotApiDebugProps {
const OneBotApiDebug: React.FC<OneBotApiDebugProps> = (props) => {
const { path, data } = props
const url = new URL(window.location.origin).href
const defaultHttpUrl = url.replace(':6099', ':3000')
let defaultHttpUrl = url.replace(':6099', ':3000')
if (defaultHttpUrl.endsWith('/')) {
defaultHttpUrl = defaultHttpUrl.slice(0, -1)
}
const [httpConfig, setHttpConfig] = useState({
url: defaultHttpUrl,
token: ''

View File

@@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "4.4.8",
"version": "4.4.9",
"scripts": {
"build:universal": "npm run build:webui && vite build --mode universal || exit 1",
"build:framework": "npm run build:webui && vite build --mode framework || exit 1",

View File

@@ -1 +1 @@
export const napCatVersion = '4.4.8';
export const napCatVersion = '4.4.9';