wangliang_wd

feat:优化桌面组件点击早晚更新问题

@@ -3,7 +3,7 @@ import { RetryHolderManager } from '@ohos/imageknife/src/main/ets/components/ima @@ -3,7 +3,7 @@ import { RetryHolderManager } from '@ohos/imageknife/src/main/ets/components/ima
3 import App from '@system.app' 3 import App from '@system.app'
4 import { Action, Params } from 'wdBean/Index' 4 import { Action, Params } from 'wdBean/Index'
5 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO' 5 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'
6 -import { Logger } from 'wdKit/Index' 6 +import { Logger, SPHelper } from 'wdKit/Index'
7 import { ContentType } from '../common/ContentType' 7 import { ContentType } from '../common/ContentType'
8 import { WDRouterRule } from '../router/WDRouterRule' 8 import { WDRouterRule } from '../router/WDRouterRule'
9 import HomeChannelUtils from './HomeChannelUtils' 9 import HomeChannelUtils from './HomeChannelUtils'
@@ -127,6 +127,8 @@ export class AppInnerLink { @@ -127,6 +127,8 @@ export class AppInnerLink {
127 if (params.type == "topic" && params.subType == "audio_news") { 127 if (params.type == "topic" && params.subType == "audio_news") {
128 } 128 }
129 if (params.type == "topic" && params.subType == "moring_evening_news") { 129 if (params.type == "topic" && params.subType == "moring_evening_news") {
  130 + ///解决早晚报切换不更新问题,内部更新id
  131 + SPHelper.default.deleteSync('dailyPaperTopicPageId');
130 ProcessUtils.gotoMorningEveningPaper() 132 ProcessUtils.gotoMorningEveningPaper()
131 } 133 }
132 134
@@ -197,6 +197,8 @@ function handleJsCallAppInnerLinkMethod(data: Message) { @@ -197,6 +197,8 @@ function handleJsCallAppInnerLinkMethod(data: Message) {
197 ProcessUtils.processPage(content) 197 ProcessUtils.processPage(content)
198 } 198 }
199 if (urlParams.get('subType') === 'moring_evening_news') { 199 if (urlParams.get('subType') === 'moring_evening_news') {
  200 + ///解决早晚报切换不更新问题,内部更新id
  201 + SPHelper.default.deleteSync('dailyPaperTopicPageId');
200 ProcessUtils.gotoMorningEveningPaper() 202 ProcessUtils.gotoMorningEveningPaper()
201 } 203 }
202 if (urlParams.get('subType') === 'electronic_newspapers') { 204 if (urlParams.get('subType') === 'electronic_newspapers') {