|
|
@@ -144,7 +144,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="uts">
|
|
|
- import { ref, onMounted, reactive, onLoad, onShow, nextTick } from 'vue'
|
|
|
+ import { ref, onMounted, reactive, nextTick } from 'vue';
|
|
|
+ import { onLoad, onShow } from '@dcloudio/uni-app';
|
|
|
import { getUserInfo,checkPermi } from '../../utils/storage'
|
|
|
import FlowChart from '../../components/index/flow-chart/flow-chart.uvue'
|
|
|
import { getOrderList, almostOverdueList, overdueList, pendingList } from '../../api/order/list'
|
|
|
@@ -154,7 +155,9 @@
|
|
|
// import {startKeepAlive,stopKeepAlive} from '@/uni_modules/ygtx-keepService'
|
|
|
// import { RequestOption } from '@/uni_modules/ygtx-keepService/utssdk/interface.uts';
|
|
|
import { getBaseUrl } from '../../utils/request'
|
|
|
+ // #ifndef WEB
|
|
|
import { KeepLive } from '@/uni_modules/android-keeplive'
|
|
|
+ // #endif
|
|
|
import { getMyNotify, registerServer} from '../../api/index/index'
|
|
|
// const handleStartKeepAlive = (userId: string) => {
|
|
|
// let notifyUrl = getBaseUrl() + "/mobile/notify";
|
|
|
@@ -698,7 +701,9 @@
|
|
|
const userId = userInfo['userId']?.toString()
|
|
|
if(userId!=null){
|
|
|
console.log("监听:"+userId)
|
|
|
+ // #ifndef WEB
|
|
|
handleKeepAlive()
|
|
|
+ // #endif
|
|
|
registerPush();
|
|
|
}
|
|
|
}
|