john 8 months ago
parent
commit
463632f0ec
2 changed files with 3 additions and 3 deletions
  1. 2 2
      frontEndMobile/src/App.vue
  2. 1 1
      frontEndMobile/src/api/api.ts

+ 2 - 2
frontEndMobile/src/App.vue

@@ -13,7 +13,7 @@ const isTabbar = ref(true)
 watch(
 watch(
   route,
   route,
   (newValue) => {
   (newValue) => {
-    title.value = newValue.meta.title || '首页'
+    title.value = `${newValue.meta.title || '首页'}`
   },
   },
   {
   {
     deep: true
     deep: true
@@ -37,7 +37,7 @@ function pageInit(newValue) {
 
 
 onMounted(() => {
 onMounted(() => {
   setTimeout(() => {
   setTimeout(() => {
-    title.value = route.meta.title || '首页'
+    title.value = `${route.meta.title || '首页'}`
   }, 300)
   }, 300)
 
 
 })
 })

+ 1 - 1
frontEndMobile/src/api/api.ts

@@ -1,6 +1,6 @@
 // src/services/api.ts
 // src/services/api.ts
 
 
-import http from './http.ts';
+import http from './http';
 
 
 // 定义接口类型
 // 定义接口类型
 interface User {
 interface User {