lisenzhou vor 2 Jahren
Ursprung
Commit
4f55792c61
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  1. 11
    0
      src/pages/share/index.vue

+ 11
- 0
src/pages/share/index.vue Datei anzeigen

@@ -1,5 +1,8 @@
1 1
 <template>
2 2
   <div class="share-pg">
3
+
4
+    <GoBack class="goback abs" style="z-index: 100" @click="router.go(-1)" />
5
+
3 6
     <div class="will-copy" ref="src">
4 7
       <img class="copy-img" src="/images/share.jpg" alt="" />
5 8
       <div class="content txt">
@@ -17,7 +20,10 @@
17 20
 import { onMounted,watch, ref } from "vue";
18 21
 import html2canvas from "html2canvas";
19 22
 import { useModel } from "@zjxpcyc/vue-tiny-store";
23
+import { useRouter } from "vue-router";
24
+import GoBack from "@/components/GoBack.vue";
20 25
 
26
+const router = useRouter();
21 27
 const { user } = useModel("user");
22 28
 const imgData = ref();
23 29
 const src = ref();
@@ -35,6 +41,11 @@ onMounted(() => {
35 41
 <style lang="less" scoped>
36 42
 .share-pg {
37 43
   position: relative;
44
+  .goback{
45
+    z-index: 100;
46
+    left: 10px;
47
+    top: 10px;
48
+  }
38 49
 
39 50
   .will-copy {
40 51
     position: relative;