zhiyong.zhou
2024-02-26 60d911172b1dbebe0ab952ce10366b327d5744f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const ROOT_PATH = 'pages/index/index';
import utils from '@/common/utils';
 
export const pageMinXin = {
    onLoad: () => {
        const pages = getCurrentPages();
        const [root] = pages;
        if (pages.length === 1 && root.route !== ROOT_PATH) {
            uni.navigateTo({url: `/${ROOT_PATH}`});
        }
    }
}
 
export const baseMinXin = {
    methods: {
        $formatMoney : utils.formatMoney
    }
}