lsx 2 yıl önce
ebeveyn
işleme
15e09a2189
1 değiştirilmiş dosya ile 8 ekleme ve 2 silme
  1. 8 2
      src/packageOther/about/index.vue

+ 8 - 2
src/packageOther/about/index.vue

@@ -12,7 +12,7 @@
 		</view>
 		<view v-else>
 			<u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff" :border="true" title="关于我们">
-				<view class="nav-left flex" slot="left" @click="$toIndex()">
+				<view class="nav-left flex" slot="left" @click="toIndex()">
 					<u-icon name="arrow-left" size="20" color="#333"></u-icon>
 				</view>
 			</u-navbar>
@@ -42,8 +42,14 @@
 	export default {
 		data() {
 			return {
-
 			};
+		},
+		methods: {
+			toIndex() {
+				uni.switchTab({
+					url: `/pages/index/index`
+				})
+			}
 		}
 	}
 </script>