|
|
@@ -2,9 +2,9 @@ import React, { useState } from 'react'
|
|
|
import { View, Text, ScrollView } from '@tarojs/components'
|
|
|
import Taro from '@tarojs/taro'
|
|
|
import { useQuery } from '@tanstack/react-query'
|
|
|
-import { YongrenTabBarLayout } from '../../../components/YongrenTabBarLayout'
|
|
|
+import { YongrenTabBarLayout } from '@/components/YongrenTabBarLayout'
|
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
|
-import { enterpriseOrderClient } from '../../../api/enterpriseOrderClient'
|
|
|
+import { enterpriseOrderClient } from '@/api/enterpriseOrderClient'
|
|
|
|
|
|
// 视频类型枚举
|
|
|
type VideoAssetType = 'salary_video' | 'tax_video' | 'checkin_video' | 'work_video'
|
|
|
@@ -204,7 +204,7 @@ const VideoManagement: React.FC = () => {
|
|
|
throw new Error('批量下载失败')
|
|
|
}
|
|
|
|
|
|
- const result = await res.json()
|
|
|
+ await res.json()
|
|
|
|
|
|
Taro.hideLoading()
|
|
|
Taro.showToast({
|
|
|
@@ -214,7 +214,7 @@ const VideoManagement: React.FC = () => {
|
|
|
|
|
|
// 清空选择
|
|
|
setSelectedVideos(new Set())
|
|
|
- } catch (error) {
|
|
|
+ } catch {
|
|
|
Taro.hideLoading()
|
|
|
Taro.showToast({
|
|
|
title: '下载失败,请重试',
|
|
|
@@ -282,7 +282,7 @@ const VideoManagement: React.FC = () => {
|
|
|
}
|
|
|
|
|
|
// 分享视频
|
|
|
- const handleShareVideo = (video: VideoCardData) => {
|
|
|
+ const handleShareVideo = (_video: VideoCardData) => {
|
|
|
Taro.showShareMenu({
|
|
|
withShareTicket: true
|
|
|
})
|