APP端路由调整

This commit is contained in:
huangchenhao 2025-11-04 14:24:06 +08:00
parent 4fe78dd5da
commit c69c9cdca4
5 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
const routes = [ const routes = [
{ {
path: '/app', path: '/',
name: 'Home', name: 'Home',
component: () => import('../views/Home.vue') component: () => import('../views/Home.vue')
}, },

View File

@ -269,7 +269,7 @@ const equipmentList = ref([
const showPopup = ref(false); // const showPopup = ref(false); //
const onClickLeft = () => { const onClickLeft = () => {
router.push("/app"); router.push("/");
}; };
const handleAddDevice = () => { const handleAddDevice = () => {

View File

@ -60,7 +60,7 @@
const showPopup = ref(false); // const showPopup = ref(false); //
const onClickLeft = () => { const onClickLeft = () => {
router.push("/app"); router.push("/");
}; };
const handleAdd = () => { const handleAdd = () => {

View File

@ -62,7 +62,7 @@
const showPopup = ref(false); // const showPopup = ref(false); //
const onClickLeft = () => { const onClickLeft = () => {
router.push("/app"); router.push("/");
}; };
const handleAdd = () => { const handleAdd = () => {

View File

@ -5,6 +5,7 @@ import Components from 'unplugin-vue-components/vite'
import { VantResolver } from 'unplugin-vue-components/resolvers' import { VantResolver } from 'unplugin-vue-components/resolvers'
export default defineConfig({ export default defineConfig({
base: '/app',
plugins: [ plugins: [
vue(), vue(),
Components({ Components({