41 lines
732 B
Vue
41 lines
732 B
Vue
<template>
|
|
<view class="content">
|
|
<view>
|
|
<button @click="test">测试</button>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import mp from "@/utils/uniMP.js"
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
methods: {
|
|
test() {
|
|
// mp.loadMPlocalhost({
|
|
// id: '__UNI__3A527D1',
|
|
// file: '/static/wgt/__UNI__3A527D1.wgt'
|
|
// })
|
|
mp.loadMPlocalhost({
|
|
id: '__UNI__9EDFE40',
|
|
file: '/static/wgt/__UNI__9EDFE40.wgt'
|
|
})
|
|
// mp.loadMPlocalhost({
|
|
// id: '__UNI__1EE148C',
|
|
// file: '/static/wgt/__UNI__1EE148C.wgt'
|
|
// })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
</style> |