no message

This commit is contained in:
kuaifan 2025-05-06 16:13:09 +08:00
parent 9abdafb905
commit 3a337940d1
4 changed files with 27 additions and 46 deletions

View File

@ -103,39 +103,47 @@ export default {
]), ]),
appData() { appData() {
const {initialData} = this.appConfig;
return { return {
vues: { instance: {
Vue, Vue,
store, store,
components: { components: {
DialogWrapper, DialogWrapper,
UserSelect, UserSelect,
DatePicker DatePicker,
},
options: {
shortcuts: $A.timeOptionShortcuts(),
} }
}, },
datas: { initialData: {
...this.appConfig.initialData, ...initialData,
systemInfo: window.systemInfo,
isEEUiApp: $A.isEEUiApp,
isElectron: $A.isElectron,
isMainElectron: $A.isMainElectron,
isSubElectron: $A.isSubElectron,
// theme: this.themeName,
themeName: this.themeName, themeName: this.themeName,
languages: { languages: {
languageList, languageList,
languageName, languageName,
// languageType: languageName,
}, },
userInfo: this.userInfo, userInfo: this.userInfo,
userToken: this.userToken, userToken: this.userToken,
electron: this.$Electron,
}, },
onClose: () => { handleClose: () => {
this.$refs.drawer?.onClose(); this.$refs.drawer?.onClose();
}, },
nextZIndex: () => { nextModalIndex: () => {
if (typeof window.modalTransferIndex === 'number') { if (typeof window.modalTransferIndex === 'number') {
return window.modalTransferIndex++; return window.modalTransferIndex++;
} }

View File

@ -6,7 +6,6 @@
<script> <script>
import {mapState} from "vuex"; import {mapState} from "vuex";
import microApp from '@micro-zoe/micro-app'
export default { export default {
name: "MobileBack", name: "MobileBack",
@ -128,20 +127,6 @@ export default {
} }
} }
} }
//
let microAppIsVisible = false;
microApp.setGlobalData({
type: 'modalVisible',
callback: (appName, isVisible) => {
if (isVisible) {
microAppIsVisible = true;
}
}
})
if (microAppIsVisible) {
return true;
}
//
return false; return false;
}, },
@ -149,22 +134,6 @@ export default {
// //
this.$store.commit('menu/operation', {}) this.$store.commit('menu/operation', {})
//
let microAppIsAccept = false;
microApp.setGlobalData({
type: 'route',
action: 'back',
route: this.$route,
callback: (appName, isAccept) => {
if (isAccept) {
microAppIsAccept = true;
}
}
})
if (microAppIsAccept) {
return;
}
// //
if (this.$Modal.removeLast()) { if (this.$Modal.removeLast()) {
return; return;

View File

@ -4674,9 +4674,11 @@ export default {
displayMode: 'page', displayMode: 'page',
isVisible: false, isVisible: false,
appUrl: $A.mainUrl(`apps/okr/okrDetails?data=${value}`), appUrl: $A.mainUrl(`apps/okr/`),
initialData: { initialData: {
model: 'details', empty: true,
type: 'details',
id: value,
}, },
}); });
} else { } else {
@ -4686,8 +4688,11 @@ export default {
displayMode: 'drawer', displayMode: 'drawer',
isVisible: true, isVisible: true,
appUrl: $A.mainUrl(`apps/okr/${value}`), appUrl: `http://127.0.0.1:5567/apps/okr/${value}`,
initialData: {}, // appUrl: $A.mainUrl(`apps/okr/${value}`),
initialData: {
url: $A.mainUrl()
},
}); });
} }
}, },

View File

@ -75,7 +75,6 @@
position: relative; position: relative;
background: #fff; background: #fff;
border-radius: 18px 18px 0 0; border-radius: 18px 18px 0 0;
transform: translate(0, 0) scale(1);
cursor: default; cursor: default;
.ivu-modal-wrap-apply { .ivu-modal-wrap-apply {