128 lines
6.1 KiB
JavaScript
128 lines
6.1 KiB
JavaScript
import * as VueRouter from "vue-router";
|
|
|
|
import Index from "../pages/home/Index";
|
|
import Attention from "../pages/home/Attention";
|
|
import Message from "../pages/message/Message";
|
|
import Me from "../pages/me/Me";
|
|
import Music from "../pages/home/Music";
|
|
import MusicRankList from "../pages/home/MusicRankList";
|
|
import countryChoose from "../pages/login/countryChoose";
|
|
import MyCard from "../pages/me/MyCard";
|
|
import MyCollect from "../pages/me/MyCollect";
|
|
import VideoDetail from "../pages/me/VideoDetail";
|
|
import Index2 from "../pages/home/Index2";
|
|
import EditUserInfo from "../pages/me/userinfo/EditUserInfo";
|
|
import EditUserInfoItem from "../pages/me/userinfo/EditUserInfoItem";
|
|
import AddSchool from "../pages/me/userinfo/AddSchool";
|
|
import ChooseSchool from "../pages/me/userinfo/ChooseSchool";
|
|
import DeclareSchool from "../pages/me/userinfo/DeclareSchool";
|
|
import ChooseDepartment from "../pages/me/userinfo/ChooseDepartment";
|
|
import DisplayType from "../pages/me/userinfo/DisplayType";
|
|
import Publish from "../pages/home/Publish";
|
|
import ChooseLocation from "../pages/me/userinfo/ChooseLocation";
|
|
import ChooseProvince from "../pages/me/userinfo/ChooseProvince";
|
|
import ChooseCity from "../pages/me/userinfo/ChooseCity";
|
|
import FindAcquaintance from "../pages/people/FindAcquaintance";
|
|
import ServiceProtocol from "../pages/other/ServiceProtocol";
|
|
import AddressList from "../pages/people/AddressList";
|
|
import Scan from "../pages/people/Scan";
|
|
import FaceToFace from "../pages/people/FaceToFace";
|
|
import Chat from "../pages/message/Chat";
|
|
import ChatDetail from "../pages/message/ChatDetail";
|
|
import SetRemark from "../pages/message/SetRemark";
|
|
import LookHistory from "../pages/me/rightMenu/LookHistory";
|
|
import MinorProtectionIndex from "../pages/me/rightMenu/MinorProtection/Index";
|
|
import MinorProtectionDetailSetting from "../pages/me/rightMenu/MinorProtection/DetailSetting";
|
|
import TriggerTime from "../pages/me/rightMenu/MinorProtection/TriggerTime";
|
|
import Setting from "../pages/me/rightMenu/Setting";
|
|
import Login from "../pages/login/Login";
|
|
import OtherLogin from "../pages/login/OtherLogin";
|
|
import PasswordLogin from "../pages/login/PasswordLogin";
|
|
import VerificationCode from "../pages/login/VerificationCode";
|
|
import RetrievePassword from "../pages/login/RetrievePassword";
|
|
import Help from "../pages/login/Help";
|
|
import Test from "../pages/Test";
|
|
import Test2 from "../pages/Test2";
|
|
import Test3 from "../pages/Test3";
|
|
import Share2Friend from "../pages/message/Share2Friend";
|
|
import JoinedGroupChat from "../pages/message/JoinedGroupChat";
|
|
import Report from "../pages/home/Report";
|
|
import SubmitReport from "../pages/home/SubmitReport";
|
|
import RequestUpdate from "../pages/me/RequestUpdate";
|
|
import Test4 from "../pages/Test4";
|
|
import Search from "../pages/home/SearchPage";
|
|
import LivePage from "../pages/home/LivePage";
|
|
import Test5 from "../pages/Test5";
|
|
import MusicCollect from "../pages/me/collect/MusicCollect";
|
|
import VideoCollect from "../pages/me/collect/VideoCollect";
|
|
import MyMusic from "../pages/me/MyMusic";
|
|
|
|
const routes = [
|
|
// {path: '', component: Music},
|
|
// {path: '/', component: Index},
|
|
{path: '/', component: Index2},
|
|
{path: '/test', component: Test},
|
|
{path: '/test2', component: Test2},
|
|
{path: '/test3', component: Test3},
|
|
{path: '/test4', component: Test4},
|
|
{path: '/test5', component: Test5},
|
|
{path: '/home', component: Index},
|
|
{path: '/home/submit-report', component: SubmitReport},
|
|
{path: '/home/music', component: Music},
|
|
{path: '/home/music-rank-list', component: MusicRankList},
|
|
{path: '/home/report', component: Report},
|
|
{path: '/home/search', component: Search},
|
|
{path: '/home/live', component: LivePage},
|
|
|
|
|
|
{path: '/attention', component: Attention},
|
|
{path: '/publish', component: Publish},
|
|
{path: '/message', component: Message},
|
|
{path: '/message/share-to-friend', component: Share2Friend},
|
|
{path: '/message/joined-group-chat', component: JoinedGroupChat},
|
|
{path: '/message/chat', component: Chat},
|
|
{path: '/message/chat-detail', component: ChatDetail},
|
|
{path: '/me', component: Me},
|
|
{path: '/me/request-update', component: RequestUpdate},
|
|
{path: '/edit-userinfo', component: EditUserInfo},
|
|
{path: '/edit-userinfo-item', component: EditUserInfoItem},
|
|
{path: '/country-choose', component: countryChoose},
|
|
{path: '/my-card', component: MyCard},
|
|
{path: '/my-collect', component: MyCollect},
|
|
{path: '/video-detail', component: VideoDetail},
|
|
{path: '/add-school', component: AddSchool},
|
|
{path: '/choose-school', component: ChooseSchool},
|
|
{path: '/declare-school', component: DeclareSchool},
|
|
{path: '/choose-department', component: ChooseDepartment},
|
|
{path: '/display-type', component: DisplayType},
|
|
{path: '/choose-location', component: ChooseLocation},
|
|
{path: '/choose-province', component: ChooseProvince},
|
|
{path: '/choose-city', component: ChooseCity},
|
|
{path: '/find-acquaintance', component: FindAcquaintance},
|
|
{path: '/service-protocol', component: ServiceProtocol},
|
|
{path: '/address-list', component: AddressList},
|
|
{path: '/scan', component: Scan},
|
|
{path: '/face-to-face', component: FaceToFace},
|
|
{path: '/set-remark', component: SetRemark},
|
|
|
|
{path: '/me/right-menu/look-history', component: LookHistory},
|
|
{path: '/me/right-menu/minor-protection/index', component: MinorProtectionIndex},
|
|
{path: '/me/right-menu/minor-protection/detail-setting', component: MinorProtectionDetailSetting},
|
|
{path: '/me/right-menu/minor-protection/trigger-time', component: TriggerTime},
|
|
{path: '/me/right-menu/setting', component: Setting},
|
|
{path: '/me/collect/music-collect', component: MusicCollect},
|
|
{path: '/me/collect/video-collect', component: VideoCollect},
|
|
{path: '/me/my-music', component: MyMusic},
|
|
|
|
{path: '/login', component: Login},
|
|
{path: '/login/other', component: OtherLogin},
|
|
{path: '/login/password', component: PasswordLogin},
|
|
{path: '/login/verification-code', component: VerificationCode},
|
|
{path: '/login/retrieve-password', component: RetrievePassword},
|
|
{path: '/login/help', component: Help},
|
|
]
|
|
|
|
export default VueRouter.createRouter({
|
|
history: VueRouter.createWebHashHistory(),
|
|
routes, // `routes: routes` 的缩写
|
|
}) |