This commit is contained in:
@@ -50,8 +50,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import lt from "./api/locale";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -24,10 +24,9 @@ const lt = {};
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
async Get(keys) {},
|
async Get(keys) {},
|
||||||
async PreFetch(keys) {},
|
async PreFetch(keys) {
|
||||||
ClearCache() {},
|
//todo: make this work with the locale route to get teh batch of keys and store into the lt object
|
||||||
async authenticate(login, password) {
|
fetch(config.apiUrl + "auth", {
|
||||||
return fetch(config.apiUrl + "auth", {
|
|
||||||
method: "post",
|
method: "post",
|
||||||
mode: "cors",
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -50,7 +49,5 @@ export default {
|
|||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
logout() {
|
ClearCache() {}
|
||||||
processLogout();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user