moefyit / vuepress-plugin-meting

:cake: A simple plugin connect APlayer, Meting and VuePress.
https://moefyit.github.io/moefy-vuepress/
MIT License
32 stars 2 forks source link

无法同时支持本地音乐与网易连接 #24

Closed james-z-repo closed 3 years ago

james-z-repo commented 3 years ago

复现步骤:

[
      'meting',
      {
        meting: {
          auto: "https://music.163.com/#/playlist?id=6590270162"
        },
        aplayer: {
          autoplay: true,
          audio: [
            {
              name: '강남역 4번 출구',
              artist: '生活好悲伤,雨中拉肖邦',
              url: 'https://assets.smallsunnyfox.com/music/2.mp3',
              cover: 'https://assets.smallsunnyfox.com/music/2.jpg'
            },
            {
              name: '用胳膊当枕头',
              artist: '生活好悲伤,雨中拉肖邦',
              url: 'https://assets.smallsunnyfox.com/music/3.mp3',
              cover: 'https://assets.smallsunnyfox.com/music/3.jpg'
            }
          ]
        }
      }
    ]

看了下代码是直接赋值给了audio,没有考虑到我可以通过aplayer赋值的情况,可以concat下

james-z-repo commented 3 years ago

对了,还有报错 image

vue.runtime.esm.js?2b0e:619 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "mid"

found in

---> at node_modules/vuepress-plugin-meting/bin/Meting.vue

at node_modules/vuepress-plugin-meting/bin/MetingGlobal.vue
SigureMo commented 3 years ago

emmm,对啊,还有这种需求嘛?

james-z-repo commented 3 years ago

木有了,,,..我正在搭建自己的vuepress博客,想找一些参考的,可以分享下你的博客连接吗?

SigureMo commented 3 years ago

嗯?文档里就写了啊 https://nyakku.moe,另外这个需求我等会弄好就发布。

james-z-repo commented 3 years ago

😊好的,谢谢

SigureMo commented 3 years ago

该需求已在 v0.2.1 添加,不过不要使用 aplayer.audio 而使用 aplayer.additionalAudios 选项。