|
|
@@ -9,6 +9,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<home :user="user" v-else-if="active == 1" /> |
|
|
|
<new-estimate :user="user" v-else-if="active == 2" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
@@ -17,6 +18,7 @@ |
|
|
|
import SideBar from "./sidebar.vue" |
|
|
|
import Spinner from "./spinner.vue" |
|
|
|
import Home from "./home.vue" |
|
|
|
import NewEstimate from "./new.vue" |
|
|
|
|
|
|
|
const user = { |
|
|
|
firstName: "test", |
|
|
@@ -44,11 +46,11 @@ function active() { |
|
|
|
} |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { SideBar, Spinner, Home }, |
|
|
|
components: { SideBar, Spinner, Home, NewEstimate }, |
|
|
|
computed: { active }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
loading: false, user: user, hash: '' |
|
|
|
loading: false, user: user, hash: window.location.hash |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|