Browse Source

积分管理

master
DU 1 month ago
parent
commit
1a09ed364b
  1. 11
      src/router/index.js
  2. 4
      src/views/login.vue
  3. 12
      src/views/points/management/index.vue

11
src/router/index.js

@ -64,8 +64,7 @@ export const constantRoutes = [ @@ -64,8 +64,7 @@ export const constantRoutes = [
{
path: '',
component: Layout,
// redirect: 'index',
redirect: '/system/user'
redirect: '/hazard/ledger'
// children: [
// {
// path: 'index',
@ -159,6 +158,12 @@ export const constantRoutes = [ @@ -159,6 +158,12 @@ export const constantRoutes = [
component: Layout,
hidden: true,
children: [
{
path: 'ledger',
component: () => import('@/views/hazard/ledger/index'),
name: 'HazardLedgerHome',
meta: { title: '隐患台账' }
},
{
path: 'audit/detail',
component: () => import('@/views/hazard/audit/index'),
@ -170,7 +175,7 @@ export const constantRoutes = [ @@ -170,7 +175,7 @@ export const constantRoutes = [
{
path: '/',
component: Layout,
redirect: '/index',
redirect: '/hazard/ledger'
}
// {
// path: '/tool',

4
src/views/login.vue

@ -124,8 +124,7 @@ export default { @@ -124,8 +124,7 @@ export default {
Cookies.remove('rememberMe');
}
this.$store.dispatch("Login", this.loginForm).then(() => {
// this.$router.push({ path: this.redirect || "/questionModule/questionList" }).catch(()=>{});
this.$router.push({ path: "/questionModule/index" }).catch(()=>{});
this.$router.push({ path: this.redirect || '/hazard/ledger' }).catch(() => {})
}).catch(() => {
this.loading = false;
if (this.captchaEnabled) {
@ -282,4 +281,3 @@ export default { @@ -282,4 +281,3 @@ export default {
}
}
</style>

12
src/views/points/management/index.vue

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save