mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
no message
This commit is contained in:
parent
9abdafb905
commit
3a337940d1
@ -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++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
13
resources/assets/js/store/actions.js
vendored
13
resources/assets/js/store/actions.js
vendored
@ -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()
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user