|
@@ -1,6 +1,7 @@
|
|
import { IconWechat } from "@/assets/icons";
|
|
import { IconWechat } from "@/assets/icons";
|
|
import { PromotionController } from "@/modules/resource/controllers/PromotionController";
|
|
import { PromotionController } from "@/modules/resource/controllers/PromotionController";
|
|
import { clipboard } from "@/utils";
|
|
import { clipboard } from "@/utils";
|
|
|
|
+import { useAuth } from "@queenjs-modules/auth";
|
|
import { Image } from "@queenjs/ui";
|
|
import { Image } from "@queenjs/ui";
|
|
import { useQRCode } from "@vueuse/integrations/useQRCode";
|
|
import { useQRCode } from "@vueuse/integrations/useQRCode";
|
|
import { Button, Divider, Input } from "ant-design-vue";
|
|
import { Button, Divider, Input } from "ant-design-vue";
|
|
@@ -13,7 +14,15 @@ export default defineComponent({
|
|
controller: any<PromotionController>().isRequired,
|
|
controller: any<PromotionController>().isRequired,
|
|
},
|
|
},
|
|
setup(props, { slots }) {
|
|
setup(props, { slots }) {
|
|
- let shareLink = location.origin + "/share.html?id=" + props.record._id;
|
|
|
|
|
|
+ const auth = useAuth();
|
|
|
|
+ const userInfo: any = auth.store.userInfo;
|
|
|
|
+ const isSys = userInfo.roles?.includes("system") ? true : false;
|
|
|
|
+ let shareLink =
|
|
|
|
+ location.origin +
|
|
|
|
+ "/share.html?id=" +
|
|
|
|
+ props.record._id +
|
|
|
|
+ "&isSys=" +
|
|
|
|
+ isSys;
|
|
// if (location.host == "www.infish.cn") {
|
|
// if (location.host == "www.infish.cn") {
|
|
// shareLink =
|
|
// shareLink =
|
|
// location.origin +
|
|
// location.origin +
|