aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/main.ts
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-09-24 12:13:54 +0200
committerRemy Raes <raes.remy@gmail.com>2022-09-24 12:13:54 +0200
commite1271d73a67ecc711838e8e8c37bd20d9fe019fc (patch)
treeec93733417bc292c62da41549731c4a676e4f763 /src-vue/src/main.ts
parentd4b55ae95a83f92581296ce0c54e8be62e33bbcc (diff)
downloadFlightCore-e1271d73a67ecc711838e8e8c37bd20d9fe019fc.tar.gz
FlightCore-e1271d73a67ecc711838e8e8c37bd20d9fe019fc.zip
feat: use a store for application state
Diffstat (limited to 'src-vue/src/main.ts')
-rw-r--r--src-vue/src/main.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts
index 048f8f30..d13ef719 100644
--- a/src-vue/src/main.ts
+++ b/src-vue/src/main.ts
@@ -7,6 +7,7 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// styles
import 'element-plus/theme-chalk/index.css';
import './style.css'
+import { store } from './plugins/store';
const app = createApp(App);
app.use(ElementPlus);
@@ -16,4 +17,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
+// style
+app.use( store );
+
app.mount('#app')