This commit is contained in:
@@ -50,8 +50,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import lt from "./api/locale";
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
data() {
|
||||
|
||||
@@ -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() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user