提交 55346844 编写于 作者: LUCIFER-ZHU's avatar LUCIFER-ZHU

更改方法名

上级 2a00f076
......@@ -250,6 +250,6 @@ export const updateZIndex = (state: any, zIndex: number) => {
*
* @param state
*/
export const changeNoticeStatus = (state: any, status: boolean) => {
export const setNoticeStatus = (state: any, status: boolean) => {
state.noticeStatus = status;
}
\ No newline at end of file
......@@ -104,7 +104,7 @@ export class Notice {
role: 'cancel',
handler: () => {
if (store && store.commit) {
store.commit('changeNoticeStatus',true);
store.commit('setNoticeStatus',true);
}
resolve(false);
}
......@@ -114,7 +114,7 @@ export class Notice {
cssClass: 'secondary',
handler: () => {
if (store && store.commit) {
store.commit('changeNoticeStatus',true);
store.commit('setNoticeStatus',true);
}
resolve(true);
}
......@@ -124,7 +124,7 @@ export class Notice {
if (store && store.state && store.state.noticeStatus) {
await alert.present();
if (store && store.commit) {
store.commit('changeNoticeStatus',false);
store.commit('setNoticeStatus',false);
}
}
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册