This commit is contained in:
2018-11-09 20:53:30 +00:00
parent 84ea572ad2
commit 943cd0875d
2 changed files with 4 additions and 9 deletions

View File

@@ -50,8 +50,6 @@
</template> </template>
<script> <script>
import lt from "./api/locale";
export default { export default {
name: "App", name: "App",
data() { data() {

View File

@@ -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();
}
}; };