Commit 1a074805 by 胡悦

提交路由

1 parent d77f801c
......@@ -37,6 +37,15 @@ const staticRoutes = Object.freeze([
}
},
{
name: 'RegisterSuccess',
path: '/registerSuccess',
component: () => import('views/login/registerSuccess.vue'),
meta: {
title: '注册成功',
backgroundColor: '#fff'
}
},
{
name: 'Project',
path: '/project',
component: () => import('views/project/index.vue')
......
......@@ -22,9 +22,12 @@ orm<template>
:rules="[{ required: true, message: '请输入持卡人姓名' }]" />
<div class="form-explain">持卡人姓名与姓名必须一致</div>
<div class="form-submit">
<van-button round block color="#FB7034" native-type="submit">
<van-button round block color="#FB7034" native-type="onRegister">
提交注册
</van-button>
<van-button round block color="#FB7034" @click="onRegister">
注册成功
</van-button>
</div>
</van-form>
</template>
......@@ -44,7 +47,7 @@ const getCode = () => {
}
const onRegister = () => {
router.go(-2)
router.push('/registerSuccess')
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!