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

4
src/views/login.vue

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

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

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