lsx 2 年之前
父节点
当前提交
37b76260fc
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/packageOther/about/index.vue

+ 1 - 8
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>
@@ -48,13 +48,6 @@
 		onShow() {
 			this.pagesNum = getCurrentPages().length
 		},
-		methods: {
-			toIndex() {
-				uni.switchTab({
-					url: `/pages/index/index`
-				})
-			}
-		}
 	}
 </script>
 <style lang="scss" scoped>