引言 自己弄新版博客想用APlayer,到github看了一圈没见有vue3版本的,所以就用基于Aplayer组件化了下,顺带看了下Meting.js,用Meting.js的服务去获取指定歌曲,详见代码 参考: https://github.com/DIYgod/APlayer https://ap
import http from '@/api/http' import APlayer from 'APlayer'; import 'APlayer/dist/APlayer.min.css'; import type {PropType} from '@vue/runtime-core'; import {nextTick, onBeforeUnmount, onMounted, ref} from 'vue' const playerRef = ref() let instance: APlayer; // APlayer歌曲信息 class...
import {nextTick, onBeforeUnmount, onMounted, ref}from'vue'constplayerRef=ref() let instance: APlayer;// APlayer歌曲信息classAudio{// 音频艺术家artist: String;// 音频名称name: String;// 音频链接url: String;// 音频封面cover: String;// 歌词lrc: String;constructor(artist: String,name: String...
与hexo不一样,正常的主题文件会被安装到node_modules文件夹中。如果之前vuepress-theme-reco安装正确的话,可以在node_modules文件夹中找到改文件。所以如果不把主题文件放到本地,我们每次执行npm install的时候,新的文件就会把我们魔改过的文件覆盖掉。 接着不得不谈一下主题的启动流程:如果config没指定,系统会默认会...