- 将 CustomNav.vue 重命名为 custom-nav.vue - 将 TabBar.vue 重命名为 tab-bar.vue - 更新所有引用上述组件的导入路径 - 确保组件引用与新文件名保持一致
@@ -82,8 +82,8 @@
<script setup lang="ts">
import { ref, computed, onMounted, watch, nextTick, onBeforeUnmount, getCurrentInstance } from 'vue'
-import CustomNav from '@/components/CustomNav.vue'
-import TabBar from '@/components/TabBar.vue'
+import CustomNav from '@/components/custom-nav.vue'
+import TabBar from '@/components/tab-bar.vue'
import ScaleRuler from '@/components/scale-ruler.vue'
type RecordItem = { id: string; date: string; value: number; type: string }
@@ -80,8 +80,8 @@
type RecordItem = { id: string; date: string; s: number; d: number }
@@ -7,9 +7,9 @@
</template>
</script>
<style>
@@ -71,8 +71,8 @@
type RecordItem = { id: string; date: string; hr: number }
@@ -81,8 +81,8 @@
import { ref, computed } from 'vue'
type RecordItem = { id: string; date: string; height: number }
@@ -73,8 +73,8 @@
type RecordItem = { id: string; date: string; weight: number }
@@ -46,8 +46,8 @@
import { ref } from 'vue'
const title = ref('健康数据')
@@ -21,8 +21,8 @@
import PageTitle from '@/components/PageTitle.vue'
const title = ref('Hello')
@@ -24,7 +24,7 @@
const isLogging = ref(false)
@@ -48,8 +48,8 @@ import { ref } from 'vue'
import { computed } from 'vue'
import { onShow } from '@dcloudio/uni-app'
const title = ref('个人中心')
@@ -73,7 +73,7 @@
const form = ref({
avatar: '',
@@ -80,7 +80,7 @@
// 吸烟选项
const smokingOptions = [