- fix: starting the app it doesn't loaded the SingleTodo correctly...
the problem was:
import { SingleTodo } from '@components' // doesn't work:
Resolve :
import { SingleTodo } from '../../SingleTodo' // correct!
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<!--
|
||||
<router-link :to="'/'" v-if="$router.currentRoute.meta.backButton">
|
||||
<button>
|
||||
<i>arrow_back</i>
|
||||
</button>
|
||||
</router-link>
|
||||
-->
|
||||
<q-layout-header>
|
||||
<q-toolbar
|
||||
color="primary"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Watch } from 'vue-property-decorator'
|
||||
|
||||
import { SingleCat } from '@components'
|
||||
import { SingleCat } from '../SingleCat'
|
||||
import { ICategory } from '@src/model'
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { UserStore } from '@modules'
|
||||
|
||||
import { ITodo } from '../../../model/index'
|
||||
|
||||
import { SubMenus } from '@components'
|
||||
import { SubMenus } from '../SubMenus'
|
||||
|
||||
|
||||
import $ from 'jquery'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
|
||||
import { SingleTodo } from '@components'
|
||||
import { SingleTodo } from '../SingleTodo'
|
||||
import { ITodo } from '@src/model'
|
||||
|
||||
import { rescodes } from '../../../store/Modules/rescodes'
|
||||
@@ -34,6 +34,8 @@ export default class Todo extends Vue {
|
||||
itemDragEnd: any = null
|
||||
selrowid: number = 0
|
||||
|
||||
// @Prop({ required: false }) category: string
|
||||
|
||||
$refs: {
|
||||
single: SingleTodo[]
|
||||
}
|
||||
@@ -49,6 +51,7 @@ export default class Todo extends Vue {
|
||||
|
||||
getCategory() {
|
||||
return this.$route.params.category
|
||||
// return this.category
|
||||
}
|
||||
|
||||
change(param) {
|
||||
@@ -242,6 +245,9 @@ export default class Todo extends Vue {
|
||||
|
||||
|
||||
async load() {
|
||||
// Set last category selected
|
||||
localStorage.setItem(rescodes.localStorage.categorySel, this.getCategory())
|
||||
|
||||
for (let todosKey in rescodes.Todos) {
|
||||
this.listPriorityLabel.push(rescodes.Todos[todosKey])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user