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

更改方法名

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