更新羽声语音h5
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import config from '@/until/config.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
httpUrl: 'https://vespa.qxyushen.top',
|
||||
fileList: []
|
||||
}
|
||||
},
|
||||
@@ -15,6 +17,9 @@
|
||||
this.$emit('changeImageList',this.fileList)
|
||||
}
|
||||
},
|
||||
// onLoad() {
|
||||
// this.httpUrl = config.BASE_URL
|
||||
// },
|
||||
methods: {
|
||||
// 选择文件回调
|
||||
select(e) {
|
||||
@@ -60,7 +65,7 @@
|
||||
},
|
||||
uploadFile(file) {
|
||||
uni.uploadFile({
|
||||
url: 'https://chat.qxmier.com/adminapi/UploadFile/file_upload',
|
||||
url: `${this.httpUrl}/adminapi/UploadFile/file_upload`,
|
||||
filePath: file.path,
|
||||
name: 'files',
|
||||
success: (uploadRes) => {
|
||||
|
||||
Reference in New Issue
Block a user