Ver Fonte

fix:发布职位不返回

jianghaili há 7 meses atrás
pai
commit
09fb061765
2 ficheiros alterados com 4 adições e 3 exclusões
  1. 3 2
      components/nav-bar/index.vue
  2. 1 1
      pages/my/jobPosting.vue

+ 3 - 2
components/nav-bar/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="nav-bar" :style="{ paddingTop: 12 + BarHeight + 'px' }">
 		<view class="go-back">
-			<u-icon name="arrow-leftward" :color="color" size="32" @click="goBack"></u-icon>
+			<u-icon name="arrow-leftward" :color="color" size="32" @click="goBack" v-if="isBack"></u-icon>
 		</view>
 		<view class="nav-title" :style="{color:color}">
 			{{ title }}
@@ -19,7 +19,8 @@
 			backUrl: {
 			    type: String,
 			    default: ''
-			}
+			},
+			isBack:true,
 		},
 		data() {
 			return {

+ 1 - 1
pages/my/jobPosting.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="switch-roles">
-		<nav-bar title="发布职位" color="#000"></nav-bar>
+		<nav-bar title="发布职位" color="#000" :isBack="false"></nav-bar>
 		<view class="roles-content">
 			<view class="content">
 				<view class="title">{{isDisabled?'编辑【'+jobInfo.ruleClassifyName+'】':'发布社招'}}岗位</view>