the foreground project built by vue is packaged and put into the Spring Boot background. But can not directly access the page, can only click through the home menu to enter the jump. (before packing, the front desk can visit the page directly through the url address, and the above situation occurs directly after packaging.
do you have a boss who knows what"s going on?
Direct access:
:
foreground routing settings:
const routes = [
{
path: "/",
component: () => import("@/views/Main.vue"),
name: "",
children: [{
path: "",
component: () => import("@/views/dashboard/Dashboard.vue"),
meta: [],
}]
},{
path: "/404",
component: () => import("@/views/error/404.vue"),
name:"404"
}, {
path: "/reportUpload",
component: () => import("@/views/report/ReportUpload.vue"),
meta: ["", ""]
}, {
path: "/reportDownload",
component: () => import("@/views/report/ReportDownload.vue"),
meta: ["", ""]
}, {
path: "/dataSource",
component: () => import("@/views/datasource/DataSource.vue"),
meta: ["", ""]
}, {
path: "/ReprotData",
component: () => import("@/views/report/ReprotData.vue"),
meta: ["", ""]
}, {
path: "/dictManager",
component: () => import("@/views/report/dict-manage/DictManager.vue"),
meta: ["", ""]
}, {
path: "/reportManage",
component: () => import("@/views/report/ReportManager.vue"),
meta: ["", ""]
}, {
path: "/reportStep",
component: () => import("@/views/report/ReportStep.vue"),
meta: ["", ""]
}, {
path: "/dictSQLManager",
component: () => import("@/views/report/dict-manage/DictSQLManager.vue"),
meta: ["", "SQL"]
}
]