Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以支持路由操作吗 #4

Open
adfgcc opened this issue Sep 8, 2022 · 1 comment
Open

可以支持路由操作吗 #4

adfgcc opened this issue Sep 8, 2022 · 1 comment

Comments

@adfgcc
Copy link

adfgcc commented Sep 8, 2022

是否有路由相关的api可以用呢

@cpagejs
Copy link
Owner

cpagejs commented Sep 8, 2022

Cpage.router([
  {
    path: '/article',
    component: Article,
    params: {
      id: 123
    },
    cache: true,
    delay: 200
  },
  {
    path: '/article/:id',
    component: ArticleDetail
  },
  {
    path: '/about',
    component: About,
    cache: true,
  },
]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants