Create vue models without args
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
<script>
|
||||
|
||||
import { Button, ButtonGroup, Checkbox, Dialog, Dropdown, FormGroup, InputDialog, NumberInput, PasswordInput, TableView, TextInput } from 'pankow';
|
||||
|
||||
import Section from '../components/Section.vue';
|
||||
import VolumesModel from '../models/VolumesModel.js';
|
||||
|
||||
import { createVolumesModel } from '../models/VolumesModel.js';
|
||||
|
||||
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
|
||||
const accessToken = localStorage.token;
|
||||
|
||||
const volumesModel = createVolumesModel(API_ORIGIN, accessToken);
|
||||
const volumesModel = VolumesModel.create();
|
||||
|
||||
export default {
|
||||
name: 'VolumesView',
|
||||
|
||||
Reference in New Issue
Block a user