mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
smart-admin-h5
This commit is contained in:
27
smart-admin-h5/src/components/van-bar/RouterNavBar.vue
Normal file
27
smart-admin-h5/src/components/van-bar/RouterNavBar.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
|
||||
<van-nav-bar :title="title" left-text="返回" left-arrow @click-left="onClickLeft" />
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'RouterNavBar',
|
||||
props: {
|
||||
title: {
|
||||
type: String
|
||||
},
|
||||
path: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
methods: {
|
||||
onClickLeft() {
|
||||
this.$router.push(this.path);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user