From 7d8fed68cc2227567c1f5e1564ccf43441d791f9 Mon Sep 17 00:00:00 2001
From: yuanyxh <15766118362@139.com>
Date: Thu, 9 May 2024 14:26:57 +0800
Subject: [PATCH] feat: add something
---
index.html | 5 +++++
src/filehandle/WebdavFile.ts | 2 +-
vite.config.ts | 6 ++++++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 193fd14..540eb88 100644
--- a/index.html
+++ b/index.html
@@ -13,6 +13,11 @@
type="font/woff2"
crossorigin
/>
+
+
diff --git a/src/filehandle/WebdavFile.ts b/src/filehandle/WebdavFile.ts
index d778905..67c263b 100644
--- a/src/filehandle/WebdavFile.ts
+++ b/src/filehandle/WebdavFile.ts
@@ -295,7 +295,7 @@ class WebdavFile {
this.name = webdav.name;
this.webdav = createClient(webdav.url, {
- authType: AuthType.Digest,
+ authType: AuthType.Auto,
username: webdav.username,
password: webdav.password
});
diff --git a/vite.config.ts b/vite.config.ts
index 87376c9..b4a2bd2 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -173,6 +173,12 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(/^\/api/, 'notes')
+ },
+ '/apache2': {
+ target: 'http://8.222.131.201:8364',
+ changeOrigin: true,
+ ws: true,
+ rewrite: (path) => path.replace(/^\/apache2/, 'notes')
}
}
// https: {},