Bläddra i källkod

Merge branch 'dev' of http://124.70.149.18:10880/lianghj/queenshow into dev

liwei 1 år sedan
förälder
incheckning
bb4e15a5d3
4 ändrade filer med 20 tillägg och 7 borttagningar
  1. 1 1
      package.json
  2. 10 2
      src/hooks/initAuthDef.ts
  3. 5 0
      src/pages/share/Statistics/index.tsx
  4. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -26,7 +26,7 @@
     "@ckeditor/ckeditor5-theme-lark": "^38.0.0",
     "@ckeditor/ckeditor5-vue": "^5.1.0",
     "@linaria/core": "^4.1.1",
-    "@queenjs-modules/auth": "^0.0.19",
+    "@queenjs-modules/auth": "^0.0.20",
     "@queenjs-modules/queditor": "0.0.13",
     "@queenjs-modules/queentree": "^0.0.10",
     "@queenjs-modules/queentree-explorer": "^0.0.6",

+ 10 - 2
src/hooks/initAuthDef.ts

@@ -16,8 +16,16 @@ export function initAuthDef() {
       needRegister: true,
       needResetPwd: true,
       regInfo: {
-        key: "queenshow"
-      }
+        key: "queenshow",
+      },
+    },
+    https: {
+      getProfile() {
+        return (this as any).request("/profile?appKey=" + this.config.key, {
+          method: "GET",
+          silence: false,
+        });
+      },
     },
   });
   auth.actions.initUser();

+ 5 - 0
src/pages/share/Statistics/index.tsx

@@ -0,0 +1,5 @@
+import { defineComponent } from "vue";
+
+export default defineComponent(() => {
+  return () => <div></div>;
+});

+ 4 - 4
yarn.lock

@@ -1736,10 +1736,10 @@
   resolved "http://124.70.149.18:4873/@polka%2furl/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
   integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==
 
-"@queenjs-modules/auth@^0.0.19":
-  version "0.0.19"
-  resolved "http://124.70.149.18:4873/@queenjs-modules%2fauth/-/auth-0.0.19.tgz#2235626d3a628e3a359ef56c3b003b2cb8f3f9c2"
-  integrity sha512-4t7YAhDqy2JRrUMhUbV1PTGZvZjOcUp2dUFZcVHKT/+1l04qkzn4qOnINGxxGr2Dejmcuz9piEXYkQ/gWDPj3Q==
+"@queenjs-modules/auth@^0.0.20":
+  version "0.0.20"
+  resolved "http://124.70.149.18:4873/@queenjs-modules%2fauth/-/auth-0.0.20.tgz#f37d0d5ea7482e6b523883cb363a2bfe0e6f2bf4"
+  integrity sha512-E54vB2DLEuAC8ZpzFKTYowQGniexzL35htzFUbIaSylqliWikT+Ca1mhykj8f2HyxEFgYDwBC7rIWUmZJTl1lg==
 
 "@queenjs-modules/queditor@0.0.13":
   version "0.0.13"