🌈 style: 优化类型

This commit is contained in:
alger
2024-05-21 11:01:23 +08:00
parent e4c1f855fb
commit c37ad07f93
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ watch(
},
);
const iconStyle = (index: any) => {
const iconStyle = (index: number) => {
const style = {
fontSize: props.size,
color: path.value === props.menus[index].path ? props.selectColor : props.color,
+1 -1
View File
@@ -184,7 +184,7 @@ function handlePrev() {
const MusicFullRef = ref<any>(null);
function handleGetAudioTime(this: any) {
function handleGetAudioTime(this: HTMLAudioElement) {
// 监听音频播放的实时时间事件
const audio = this as HTMLAudioElement;
// 获取当前播放时间