12345678910111213141516171819202122232425 |
- <template>
- <view @click="jump">
- <slot></slot>
- </view>
- </template>
- <script>
- export default {
- name:'app-link',
- props:{
- link:String,
- type:{
- type: String,
- default: 'to'
- }
- },
- methods:{
- jump(){
- this.$jump({
- url: this.link,
- type: this.type
- })
- }
- }
- }
- </script>
|