1 line
1.8 KiB
Plaintext
1 line
1.8 KiB
Plaintext
|
{"version":3,"file":"index.js","sources":["../../../../src/sheep/index.js"],"sourcesContent":["import $url from '@/sheep/url'\r\nimport $router from '@/sheep/router'\r\nimport $platform from '@/sheep/platform'\r\nimport $helper from '@/sheep/helper'\r\nimport zIndex from '@/sheep/config/zIndex.js'\r\nimport $store from '@/sheep/store'\r\nimport dayjs from 'dayjs'\r\nimport relativeTime from 'dayjs/plugin/relativeTime'\r\nimport duration from 'dayjs/plugin/duration'\r\nimport 'dayjs/locale/zh-cn'\r\n\r\ndayjs.locale('zh-cn')\r\ndayjs.extend(relativeTime)\r\ndayjs.extend(duration)\r\n\r\nconst sheep = {\r\n $store,\r\n $url,\r\n $router,\r\n $platform,\r\n $helper,\r\n $zIndex: zIndex,\r\n}\r\n\r\n// 加载Shopro底层依赖\r\nexport async function ShoproInit() {\r\n // 应用初始化\r\n await $store('app').init()\r\n\r\n // 平台初始化加载(各平台provider提供不同的加载流程)\r\n $platform.load()\r\n\r\n if (process.env.NODE_ENV === 'development') {\r\n ShoproDebug()\r\n }\r\n}\r\n\r\n// 开发模式\r\nfunction ShoproDebug() {\r\n // 开发环境引入vconsole调试\r\n // #ifdef H5\r\n // import(\"vconsole\").then(vconsole => {\r\n // \tnew vconsole.default();\r\n // });\r\n // #endif\r\n // TODO 芋艿:可以打印路由\r\n // 同步前端页面到后端\r\n // console.log(ROUTES)\r\n}\r\n\r\nexport default sheep\r\n"],"names":["dayjs","relativeTime","duration","$store","$url","$router","$platform","$helper","zIndex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWAA,cAAAA,MAAM,OAAO,OAAO;AACpBA,cAAAA,MAAM,OAAOC,cAAAA,YAAY;AACzBD,cAAAA,MAAM,OAAOE,cAAAA,QAAQ;AAErB,MAAM,QAAQ;AAAA,EAAA,QACZC,kBAAA;AAAA,EAAA,MACAC,gBAAA;AAAA,EAAA,SACAC,mBAAA;AAAA,EAAA,WACAC,qBAAA;AAAA,EAAA,SACAC,mBAAA;AAAA,EACA,SAASC,oBAAA;AACX;AAGA,SAAsB,aAAa;AAAA;AAE3B,UAAAL,yBAAO,KAAK,EAAE;AAGpBG,yBAAA,UAAU,KAAK;AAAA,EAKjB;AAAA;AAeA,MAAA,UAAe;;;"}
|