hookehuyr

refactor: 移除冗余的vant toast样式导入并更新按钮文案

移除多个组件中重复导入的vant toast样式,统一在App.vue中导入,提高代码整洁度。同时更新UploadVideoPopup.vue中的按钮文案,使其更符合用户操作习惯。
<!--
* @Date: 2025-03-20 19:53:12
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-24 09:55:15
* @LastEditTime: 2025-03-25 10:56:11
* @FilePath: /mlaj/src/App.vue
* @Description: 入口文件
-->
......@@ -20,6 +20,7 @@ import { wxJsAPI } from "@/api/wx/config";
import { apiList } from "@/api/wx/jsApiList.js";
import { wxInfo, getUrlParams, stringifyQuery } from "@/utils/tools";
import 'vant/es/toast/style'
provideAuth(); // 提供全局认证状态
provideCart('single'); // 提供全局购物车状态,单一商品模式
......
......@@ -83,7 +83,6 @@
<script setup>
import { ref } from 'vue'
import { showToast } from 'vant'
import 'vant/lib/toast/style'
import { checkInTypes } from '@/utils/mockData'
const props = defineProps({
......
......@@ -22,7 +22,7 @@
accept="video/*"
@oversize="onOversize"
>
<van-button icon="plus" type="primary">上传视频</van-button>
<van-button type="default">请选择视频</van-button>
</van-uploader>
<div v-if="uploadProgress > 0 && uploadProgress < 100" class="progress">
......
......@@ -528,7 +528,6 @@ import { courses, liveStreams, activities, checkInTypes, userRecommendations } f
import { useTitle } from '@vueuse/core'
import { useAuth } from '@/contexts/auth'
import { showToast } from 'vant'
import 'vant/lib/toast/style'
// 视频播放状态管理
const activeVideoIndex = ref(null); // 当前播放的视频索引
......