From ddf4180a842d89d0fc1f86b3b7615252eb819c08 Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Fri, 8 Oct 2021 09:50:06 +0800 Subject: [PATCH] init --- package.json | 2 ++ src/main.js | 3 ++ src/views/Receive/index.vue | 60 +++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 src/views/Receive/index.vue diff --git a/package.json b/package.json index 2a24d22..0bbf104 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@chenfengyuan/vue-qrcode": "^1.0.1", + "@liripeng/vue-audio-player": "^1.2.11", "@riophae/vue-treeselect": "0.4.0", "@sscfaith/avue-form-design": "1.3.12", "avue-plugin-ueditor": "^0.1.4", @@ -30,6 +31,7 @@ "sockjs-client": "1.0.0", "stomp-websocket": "2.3.4-next", "vue": "^2.6.10", + "vue-audio-player": "0.0.2", "vue-axios": "^2.1.2", "vue-clipboard2": "^0.3.0", "vue-cron": "^1.0.9", diff --git a/src/main.js b/src/main.js index 1e8dc94..8e64c72 100644 --- a/src/main.js +++ b/src/main.js @@ -19,11 +19,14 @@ import './styles/common.scss' import AvueFormDesign from '@sscfaith/avue-form-design' import basicContainer from './components/basic-container/main' import api from './api' +import AudioPlayer from '@liripeng/vue-audio-player' +import '@liripeng/vue-audio-player/lib/vue-audio-player.css' // 插件 json 展示 Vue.use(router) Vue.use(AvueFormDesign); +Vue.use(AudioPlayer) window.axios = axios Vue.use(VueAxios, axios) Vue.use(api) // 注册使用API模块 diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue new file mode 100644 index 0000000..2709b83 --- /dev/null +++ b/src/views/Receive/index.vue @@ -0,0 +1,60 @@ + + + + {{ currentAudioName || audioList[0].name }} + + + + + + + + +