Эх сурвалжийг харах

change router to hash mode

Michael Wang 5 жил өмнө
parent
commit
69d67642fe

+ 1 - 1
src/main/resources/static-web-admin/package.json

@@ -10,7 +10,7 @@
     "build:prod": "vue-cli-service build",
     "build:staging": "NODE_ENV=production vue-cli-service build --mode staging",
     "mock": "json-server --watch mock/db.json",
-    "postbuild:prod": "node postbuild",
+    "//postbuild:prod": "node postbuild",
     "prebuild:prod": "node prebuild",
     "prebuild:staging": "node prebuild",
     "start": "vue-cli-service serve"

+ 1 - 1
src/main/resources/static-web-admin/src/router/index.js

@@ -107,7 +107,7 @@ const routes = [
 ];
 
 const router = new VueRouter({
-  mode: "history",
+  mode: "hash",
   base: process.env.BASE_URL,
   routes,
 });

+ 2 - 2
src/main/resources/static/index.html

@@ -1,8 +1,8 @@
-<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/web/favicon.ico" /><![endif]--><title>aliyun-ops-web-admin</title><link href=/web/css/about.86687f92.css rel=prefetch><link href=/web/js/about.3aedb771.js rel=prefetch><link href=/web/js/default.ea358c11.js rel=prefetch><link href=/web/css/app.a8da051a.css rel=preload as=style><link href=/web/css/chunk-vendors.d64f6a5d.css rel=preload as=style><link href=/web/js/app.241fa89c.js rel=preload as=script><link href=/web/js/chunk-vendors.316bb0a6.js rel=preload as=script><link href=/web/css/chunk-vendors.d64f6a5d.css rel=stylesheet><link href=/web/css/app.a8da051a.css rel=stylesheet><link rel=icon type=image/png sizes=32x32 href=/web/img/icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=/web/img/icons/favicon-16x16.png><link rel=manifest href=/web/manifest.json><meta name=theme-color content=#4DBA87><meta name=apple-mobile-web-app-capable content=no><meta name=apple-mobile-web-app-status-bar-style content=default><meta name=apple-mobile-web-app-title content=aliyun-ops-web-admin><link rel=apple-touch-icon href=/web/img/icons/apple-touch-icon-152x152.png><link rel=mask-icon href=/web/img/icons/safari-pinned-tab.svg color=#4DBA87><meta name=msapplication-TileImage content=/web/img/icons/msapplication-icon-144x144.png><meta name=msapplication-TileColor content=#000000></head><body><noscript><strong>We're sorry but aliyun-ops-web-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script>var _hmt = _hmt || [];
+<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/web/favicon.ico" /><![endif]--><title>aliyun-ops-web-admin</title><link href=/web/css/about.86687f92.css rel=prefetch><link href=/web/js/about.3aedb771.js rel=prefetch><link href=/web/js/default.ea358c11.js rel=prefetch><link href=/web/css/app.a8da051a.css rel=preload as=style><link href=/web/css/chunk-vendors.d64f6a5d.css rel=preload as=style><link href=/web/js/app.8c278ffd.js rel=preload as=script><link href=/web/js/chunk-vendors.316bb0a6.js rel=preload as=script><link href=/web/css/chunk-vendors.d64f6a5d.css rel=stylesheet><link href=/web/css/app.a8da051a.css rel=stylesheet><link rel=icon type=image/png sizes=32x32 href=/web/img/icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=/web/img/icons/favicon-16x16.png><link rel=manifest href=/web/manifest.json><meta name=theme-color content=#4DBA87><meta name=apple-mobile-web-app-capable content=no><meta name=apple-mobile-web-app-status-bar-style content=default><meta name=apple-mobile-web-app-title content=aliyun-ops-web-admin><link rel=apple-touch-icon href=/web/img/icons/apple-touch-icon-152x152.png><link rel=mask-icon href=/web/img/icons/safari-pinned-tab.svg color=#4DBA87><meta name=msapplication-TileImage content=/web/img/icons/msapplication-icon-144x144.png><meta name=msapplication-TileColor content=#000000></head><body><noscript><strong>We're sorry but aliyun-ops-web-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script>var _hmt = _hmt || [];
       (function() {
         var hmId = "xxxxx";
         var hm = document.createElement("script");
         hm.src = "https://hm.baidu.com/hm.js?" + hmId;
         var s = document.getElementsByTagName("script")[0];
         s.parentNode.insertBefore(hm, s);
-      })();</script><script src=/web/js/chunk-vendors.316bb0a6.js></script><script src=/web/js/app.241fa89c.js></script></body></html>
+      })();</script><script src=/web/js/chunk-vendors.316bb0a6.js></script><script src=/web/js/app.8c278ffd.js></script></body></html>

+ 0 - 0
src/main/resources/static/js/about.3aedb771-2cabae0.js.map → src/main/resources/static/js/about.3aedb771.js.map


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
src/main/resources/static/js/app.241fa89c.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
src/main/resources/static/js/app.8c278ffd.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
src/main/resources/static/js/app.8c278ffd.js.map


+ 0 - 0
src/main/resources/static/js/chunk-vendors.316bb0a6-2cabae0.js.map → src/main/resources/static/js/chunk-vendors.316bb0a6.js.map


+ 0 - 0
src/main/resources/static/js/default.ea358c11-2cabae0.js.map → src/main/resources/static/js/default.ea358c11.js.map


+ 4 - 4
src/main/resources/static/precache-manifest.f0035bfb193f0344d1ea72d061c9c7b8.js → src/main/resources/static/precache-manifest.5ba5ac947c524377e8cf38da3751ac8c.js

@@ -4,7 +4,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
     "url": "/web/css/about.86687f92.css"
   },
   {
-    "revision": "b0fa78e56342854ae839",
+    "revision": "379fa71a7231cacb72e6",
     "url": "/web/css/app.a8da051a.css"
   },
   {
@@ -20,7 +20,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
     "url": "/web/fonts/element-icons.732389de.ttf"
   },
   {
-    "revision": "b2df7b7fd639593a729a31e6b01e4878",
+    "revision": "92b27eb9dbe64ba7c31fd324e07a71e9",
     "url": "/web/index.html"
   },
   {
@@ -28,8 +28,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
     "url": "/web/js/about.3aedb771.js"
   },
   {
-    "revision": "b0fa78e56342854ae839",
-    "url": "/web/js/app.241fa89c.js"
+    "revision": "379fa71a7231cacb72e6",
+    "url": "/web/js/app.8c278ffd.js"
   },
   {
     "revision": "f8b42e383a3014ea502c",

+ 1 - 1
src/main/resources/static/service-worker.js

@@ -14,7 +14,7 @@
 importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
 
 importScripts(
-  "/web/precache-manifest.f0035bfb193f0344d1ea72d061c9c7b8.js"
+  "/web/precache-manifest.5ba5ac947c524377e8cf38da3751ac8c.js"
 );
 
 workbox.core.setCacheNameDetails({prefix: "aliyun-ops-web-admin"});

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно