wenhongquan 3 년 전
부모
커밋
6538688a97
1개의 변경된 파일14개의 추가작업 그리고 4개의 파일을 삭제
  1. 14 4
      src/views/HomePage/index.tsx

+ 14 - 4
src/views/HomePage/index.tsx

@@ -144,13 +144,24 @@ export default defineComponent({
           left-arrow
           fixed
           placeholder={true}
+          onClick-left={() => {
+            try {
+              uni.navigateBack();
+            } catch (E) {}
+          }}
           // onClickRight={() =>
           //   router.push(`/status/${route.params.status}/report`)
           // }
           // v-slots={{ right: () => <Icon name="plus" /> }}
           style={{ zIndex: 2 }}
         />
-        <div style={{ position: 'fixed',zIndex:1,width:"100%" ,display:"none"}}>
+        <div
+          style={{
+            position: 'fixed',
+            zIndex: 1,
+            width: '100%',
+            display: 'none',
+          }}>
           <DropdownMenu>
             <DropdownItem
               v-model={incidentType.value}
@@ -164,9 +175,8 @@ export default defineComponent({
           onRefresh={handleRefresh}
           v-model={refreshLoading.value}
           successText="刷新成功"
-          style="margin-top: 10px;"
-        >
-          <div class="home-content" >
+          style="margin-top: 10px;">
+          <div class="home-content">
             <List
               v-model:loading={listLoading.value}
               finished={listFinished.value}