|
@@ -15,6 +15,22 @@
|
|
|
<link href='{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}' rel="stylesheet" type="text/css"/>
|
|
|
<!-- S-注入 -->
|
|
|
<meta name="importmap-type" content="systemjs-importmap">
|
|
|
+ <script>
|
|
|
+ if (String.prototype.startsWith === 'undefined') {
|
|
|
+ String.prototype.startsWith = function (str) {
|
|
|
+ if(str==null||str==""||this.length==0||str.length>this.length)
|
|
|
+ return false;
|
|
|
+ if(this.substr(0,str.length)==str)
|
|
|
+ return true;
|
|
|
+ else
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (typeof Promise === 'undefined')
|
|
|
+ document.write('<script src="https://unpkg.com/bluebird@3.7.2/js/browser/bluebird.core.min.js"><\/script>');
|
|
|
+ if (typeof fetch === 'undefined')
|
|
|
+ document.write('<script src="https://unpkg.com/whatwg-fetch@3.4.1/dist/fetch.umd.js"><\/script>');
|
|
|
+ </script>
|
|
|
<script type="systemjs-importmap">
|
|
|
{
|
|
|
"imports": {
|
|
@@ -33,25 +49,7 @@
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.8.3/extras/named-exports.js"></script>
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.8.3/extras/named-register.min.js"></script>
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.8.3/extras/use-default.min.js"></script>
|
|
|
- <script>
|
|
|
- (function() {
|
|
|
- Promise.all([System.import('single-spa'), System.import('vue'), System.import('vue-router')]).then(function (modules) {
|
|
|
- var singleSpa = modules[0];
|
|
|
- var Vue = modules[1];
|
|
|
- var VueRouter = modules[2];
|
|
|
-
|
|
|
- Vue.use(VueRouter)
|
|
|
-
|
|
|
- singleSpa.registerApplication(
|
|
|
- 'points',
|
|
|
- () => System.import('points'),
|
|
|
- location => location.pathname.startsWith('/')
|
|
|
- )
|
|
|
-
|
|
|
- singleSpa.start();
|
|
|
- })
|
|
|
- })()
|
|
|
- </script>
|
|
|
+
|
|
|
<!-- E-注入 -->
|
|
|
|
|
|
<style>
|
|
@@ -74,6 +72,25 @@
|
|
|
<!-- See https://github.com/joeldenning/import-map-overrides#user-interface -->
|
|
|
<import-map-overrides-full show-when-local-storage="overrides-ui"></import-map-overrides-full>
|
|
|
<!-- E-注入 -->
|
|
|
+<script>
|
|
|
+ (function() {
|
|
|
+ Promise.all([System.import('single-spa'), System.import('vue'), System.import('vue-router')]).then(function (modules) {
|
|
|
+ var singleSpa = modules[0];
|
|
|
+ var Vue = modules[1];
|
|
|
+ var VueRouter = modules[2];
|
|
|
+
|
|
|
+ Vue.use(VueRouter)
|
|
|
+
|
|
|
+ singleSpa.registerApplication(
|
|
|
+ 'points',
|
|
|
+ () => System.import('points'),
|
|
|
+ location => location.pathname.startsWith('/')
|
|
|
+ )
|
|
|
+
|
|
|
+ singleSpa.start();
|
|
|
+ })
|
|
|
+ })()
|
|
|
+</script>
|
|
|
|
|
|
<script src='{{Msg "seo" "cdn"}}/js/jquery.cookie.js?v={{Msg "seo" "version"}}' type="text/javascript"></script>
|
|
|
<script src='{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}' type="text/javascript"></script>
|