<template>
	<van-nav-bar fixed :title="$store.state.data.title||$store.state.data.currentRouter.meta.title"
		v-show="$store.state.app.device == 'mobile' && $store.state.data.currentRouter.path != '/index' && $store.state.data.showNavBar">
		<template #left>
			<van-icon name="arrow-left" size="18" @click="$router.back()"
				v-if="$store.state.data.currentRouter.fullPath != '/index'" :color="$store.state.settings.theme" />
		</template>
		<template #right>
			<van-icon name="wap-home-o" size="18" @click="$router.push('/index')" :color="$store.state.settings.theme" />
		</template>
	</van-nav-bar>
</template>
