修复接口,模块引用等一些问题
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
</template>
|
||||
</header-nav>
|
||||
<ai-dv-wrapper class="fill" v-if="dvDev">
|
||||
<router-view/>
|
||||
<router-view v-bind="commonAttrs"/>
|
||||
</ai-dv-wrapper>
|
||||
<el-row v-else-if="showTools" class="fill mar-t48" type="flex">
|
||||
<slider-nav/>
|
||||
<main-content class="fill"/>
|
||||
<main-content class="fill" :commonAttrs="commonAttrs"/>
|
||||
</el-row>
|
||||
<router-view class="fill" v-else/>
|
||||
<router-view class="fill" v-else v-bind="commonAttrs"/>
|
||||
<div v-if="dialog" class="sign-box">
|
||||
<ai-sign style="margin: auto" :instance="$request" :action="{login}"
|
||||
visible @login="getToken" :showScanLogin="false"/>
|
||||
@@ -30,7 +30,7 @@ import MainContent from "./components/mainContent";
|
||||
import HeaderNav from "./components/headerNav";
|
||||
import {mapActions, mapMutations, mapState} from "vuex";
|
||||
import Mock from "./components/mock";
|
||||
import AiDvWrapper from "@dui/dv/layout/AiDvWrapper/AiDvWrapper.vue";
|
||||
import AiDvWrapper from "dui/dv/layout/AiDvWrapper/AiDvWrapper.vue";
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
@@ -42,6 +42,13 @@ export default {
|
||||
/project\/sass/g.test(location.pathname) && (url += "?corpId=ww596787bb70f08288")
|
||||
return url
|
||||
},
|
||||
commonAttrs() {
|
||||
return {
|
||||
instance: this.$request,
|
||||
dict: this.$dict,
|
||||
permissions: this.$permissions
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -76,7 +83,8 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
wx = jWeixin
|
||||
const {jWeixin} = window
|
||||
window.wx = jWeixin
|
||||
if (this.user.token) this.getUserInfo().finally(() => {
|
||||
if (/^\/project\/xiushan/.test(location.pathname)) {
|
||||
this.getFinanceUser()
|
||||
|
||||
Reference in New Issue
Block a user