Add cache

This commit is contained in:
Peng-YM
2020-08-26 21:09:34 +08:00
parent 1b0f8f124e
commit 1fcc1f77d7
5 changed files with 164 additions and 106 deletions

View File

@@ -31,6 +31,7 @@
import TopToolbar from "@/components/TopToolbar";
import BottomNav from "@/components/BottomNav";
function initStore(store) {
store.dispatch('FETCH_SUBSCRIPTIONS');
store.dispatch("FETCH_COLLECTIONS");
@@ -72,4 +73,8 @@ export default {
}
}
}
</script>
</script>
<style>
</style>

View File

@@ -1,3 +1,3 @@
const DEBUG = true;
export const BACKEND_BASE = DEBUG ? `http://127.0.0.1:3000` : `http://sub.store`;
export const BACKEND_BASE = DEBUG ? `http://192.168.1.134:3000` : `http://sub.store`;