refactor: ♻️ 代码优化

This commit is contained in:
ray
2025-10-04 15:44:24 +08:00
parent f655954c99
commit 10c8b9fc75
14 changed files with 39 additions and 17 deletions

View File

@@ -105,10 +105,17 @@
</view>
</template>
<route lang="json">
{
"name": "login",
"style": { "navigationStyle": "custom" }
}
</route>
<script lang="ts" setup>
import { onLoad } from "@dcloudio/uni-app";
import { type LoginData } from "@/api/auth";
import { useUserStore } from "@/store/modules/user.store";
import { useUserStore } from "@/store/modules/user-store";
import { useToast } from "wot-design-uni";
import { useWechat } from "@/composables/useWechat";

View File

@@ -155,7 +155,7 @@
import { ref, reactive, computed } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { useToast } from "wot-design-uni";
import { useUserStore } from "@/store/modules/user.store";
import { useUserStore } from "@/store";
import UserAPI, { type UserProfileForm } from "@/api/user";
import FileAPI, { type FileInfo } from "@/api/file";

View File

@@ -41,7 +41,7 @@
</template>
<script lang="ts" setup>
import { useUserStore } from "@/store/modules/user.store";
import { useUserStore } from "@/store";
import { checkLogin } from "@/utils/auth";
import { onLoad } from "@dcloudio/uni-app";