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>
<script>
import lt from "./api/locale";
export default {
name: "App",
data() {

View File

@@ -24,10 +24,9 @@ const lt = {};
export default {
async Get(keys) {},
async PreFetch(keys) {},
ClearCache() {},
async authenticate(login, password) {
return fetch(config.apiUrl + "auth", {
async PreFetch(keys) {
//todo: make this work with the locale route to get teh batch of keys and store into the lt object
fetch(config.apiUrl + "auth", {
method: "post",
mode: "cors",
headers: {
@@ -50,7 +49,5 @@ export default {
return Promise.reject(error);
});
},
logout() {
processLogout();
}
ClearCache() {}
};