diff --git a/.gitignore b/.gitignore index 3b8c784..1f68017 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ dist-ssr *.sw? /keys +/dist +dist.zip \ No newline at end of file diff --git a/index.html b/index.html index dde16aa..cbb1778 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@ - + - Vite + Vue + TS + 文件分享站
diff --git a/src/assets/UserAvatar.jpg b/public/UserAvatar.jpg similarity index 100% rename from src/assets/UserAvatar.jpg rename to public/UserAvatar.jpg diff --git a/src/api/Requester.ts b/src/api/Requester.ts index ba018ac..7dbd5ba 100644 --- a/src/api/Requester.ts +++ b/src/api/Requester.ts @@ -8,7 +8,7 @@ import {File} from "../entities/File"; import {SearchType} from "../entities/SearchType.ts"; import {AccessInformation} from "../entities/AccessInformation.ts"; -export const baseUrl = 'http://localhost:8081'; +export const baseUrl = ''; export interface Result { data: T; diff --git a/src/views/AppMobile.vue b/src/views/AppMobile.vue index c8825d8..83efdb8 100644 --- a/src/views/AppMobile.vue +++ b/src/views/AppMobile.vue @@ -228,7 +228,7 @@ const userAuth = computed(() => { const searchType = ref(SearchType.FILE_NAME); const searchInput = ref(""); // 用户头像 -const userAvatar = 'src/assets/UserAvatar.jpg' +const userAvatar = 'UserAvatar.jpg' // 用户账号密码 const usernameInput = ref(''); const userPasswordInput = ref(''); diff --git a/src/views/AppPC.vue b/src/views/AppPC.vue index 1498fb8..077190d 100644 --- a/src/views/AppPC.vue +++ b/src/views/AppPC.vue @@ -277,7 +277,7 @@ const searchInput = ref(''); // 搜索类型 const searchType = ref(SearchType.FILE_NAME); // 用户头像 -const userAvatar = 'src/assets/userAvatar.jpg'; +const userAvatar = '/UserAvatar.jpg'; // 用户名 const usernameInput = ref(""); const userPasswordInput = ref("");