mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-30 17:07:43 +00:00
14395488b9
* update rdagent cmd * fix log error message * use multiProcessing.Process instead of subprocess.Popen * add traces to gitignore * add user interactor in RDLoop (finance scenarios) * add interactor (feedback, hypothesis) for quant scens * fix the test_end in qlib conf * add features init config, general instruction to qlib scenarios * set base features for based exp * fix bug when combine factors * move traces folder to git_ignore_folder * fix bug in features init * fix quant interact bug * fix logger warning error * bug fixes * modify rdagent logger, now it can set file output * adjust cli functions and fix logger bug * fix server port transport problem * update server_ui in cli * add web code * fix CI problem * black fix * update web ui README * update README * update readme
56 lines
1.2 KiB
Vue
56 lines
1.2 KiB
Vue
<template>
|
|
<div id="app">
|
|
<Header />
|
|
<router-view v-slot="{ Component }" class="component">
|
|
<keep-alive>
|
|
<component
|
|
:is="Component"
|
|
:key="$route.name"
|
|
v-if="$route.meta.keepAlive"
|
|
/>
|
|
</keep-alive>
|
|
<component
|
|
:is="Component"
|
|
:key="$route.name"
|
|
v-if="!$route.meta.keepAlive"
|
|
/>
|
|
</router-view>
|
|
<Footer :color="color" />
|
|
</div>
|
|
</template>
|
|
<script setup>
|
|
import { provide, nextTick, ref, watch } from "vue";
|
|
import Header from "./components/navBar.vue";
|
|
import Footer from "./components/footer.vue";
|
|
import { useRoute } from "vue-router";
|
|
const isRouterActive = ref(true);
|
|
const route = useRoute();
|
|
const color = ref("#F6FAFF");
|
|
watch(
|
|
() => route.path,
|
|
(newValue, oldValue) => {
|
|
color.value = route.meta.footerBg;
|
|
}
|
|
);
|
|
provide("reload", () => {
|
|
isRouterActive.value = false;
|
|
nextTick(() => {
|
|
isRouterActive.value = true;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style scoped>
|
|
#app {
|
|
width: 100%;
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
background: #fff;
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|