This commit is contained in:
zyronon 2024-03-27 02:10:28 +08:00
parent 6cc69dec18
commit dd6bd447a2
2 changed files with 27 additions and 7 deletions

View File

@ -52,7 +52,6 @@ import ChatDetail from "../pages/message/chat/ChatDetail";
import RedPacketDetail from "../pages/message/RedPacketDetail"; import RedPacketDetail from "../pages/message/RedPacketDetail";
import FindAcquaintance from "../pages/people/FindAcquaintance"; import FindAcquaintance from "../pages/people/FindAcquaintance";
import FollowAndFans from "../pages/people/FollowAndFans"; import FollowAndFans from "../pages/people/FollowAndFans";
import ServiceProtocol from "../pages/other/ServiceProtocol";
import AddressList from "../pages/people/AddressList"; import AddressList from "../pages/people/AddressList";
import Scan from "../pages/people/Scan"; import Scan from "../pages/people/Scan";
import FaceToFace from "../pages/people/FaceToFace"; import FaceToFace from "../pages/people/FaceToFace";
@ -65,6 +64,11 @@ import RetrievePassword from "../pages/login/RetrievePassword";
import Help from "../pages/login/Help"; import Help from "../pages/login/Help";
import GoodsDetail from "@/pages/shop/GoodsDetail.vue"; import GoodsDetail from "@/pages/shop/GoodsDetail.vue";
import AlbumDetail from "../pages/home/AlbumDetail.vue"; import AlbumDetail from "../pages/home/AlbumDetail.vue";
import {defineAsyncComponent} from "vue";
const _import = (path) => {
return () => import(path)
}
const routes = [ const routes = [
// {path: '/', redirect: '/attention'}, // {path: '/', redirect: '/attention'},
@ -82,10 +86,12 @@ const routes = [
{path: '/shop/detail', component: GoodsDetail}, {path: '/shop/detail', component: GoodsDetail},
{path: '/me', component: Me,}, // {path: '/me', component: Me,},
{path: '/me', component: () => import('@/pages/me/Me.vue')},
{path: '/me/edit-userinfo', component: EditUserInfo}, {path: '/me/edit-userinfo', component: EditUserInfo},
{path: '/me/edit-userinfo-item', component: EditUserInfoItem}, {path: '/me/edit-userinfo-item', component: EditUserInfoItem},
{path: '/me/country-choose', component: countryChoose}, // {path: '/me/country-choose', component: countryChoose},
{path: '/me/country-choose', component: () => import('@/pages/login/countryChoose.vue')},
{path: '/me/my-card', component: MyCard}, {path: '/me/my-card', component: MyCard},
{path: '/me/my-collect', component: MyCollect}, {path: '/me/my-collect', component: MyCollect},
{path: '/me/add-school', component: AddSchool}, {path: '/me/add-school', component: AddSchool},
@ -105,7 +111,8 @@ const routes = [
{path: '/me/collect/video-collect', component: VideoCollect}, {path: '/me/collect/video-collect', component: VideoCollect},
{path: '/me/my-music', component: MyMusic}, {path: '/me/my-music', component: MyMusic},
{path: '/message', component: Message}, // {path: '/message', component: Message},
{path: '/message', component: () => import('@/pages/message/Message.vue'),},
{path: '/message/all', component: AllMessage}, {path: '/message/all', component: AllMessage},
{path: '/message/more-search', component: MoreSearch}, {path: '/message/more-search', component: MoreSearch},
{path: '/message/joined-group-chat', component: JoinedGroupChat}, {path: '/message/joined-group-chat', component: JoinedGroupChat},
@ -131,8 +138,8 @@ const routes = [
{path: '/face-to-face', component: FaceToFace}, {path: '/face-to-face', component: FaceToFace},
{path: '/set-remark', component: SetRemark}, {path: '/set-remark', component: SetRemark},
// {path: '/login', component: Login},
{path: '/login', component: Login}, {path: '/login', component: () => import('@/pages/login/Login.vue'),},
{path: '/login/other', component: OtherLogin}, {path: '/login/other', component: OtherLogin},
{path: '/login/password', component: PasswordLogin}, {path: '/login/password', component: PasswordLogin},
{path: '/login/verification-code', component: VerificationCode}, {path: '/login/verification-code', component: VerificationCode},

View File

@ -81,7 +81,20 @@ export default defineConfig({
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
}, },
build: { build: {
sourcemap: false sourcemap: false,
rollupOptions: {
// https://rollupjs.org/guide/en/#outputmanualchunks
output: {
manualChunks: {
'other-page': [
'./src/pages/me/Me',
'./src/pages/login/Login',
'./src/pages/message/Message',
'./src/pages/login/countryChoose',
],
},
},
},
}, },
server: { server: {
port: 3000, port: 3000,