Skip to content

Commit

Permalink
chore: use ts in gallery page
Browse files Browse the repository at this point in the history
  • Loading branch information
LaicZhang committed Apr 21, 2022
1 parent 51af1d7 commit db0fbdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 1 addition & 7 deletions src/views/404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@
</div>
</template>

<script>
export default {
setup() {
return {
<script setup>
}
},
}
</script>

<style scoped lang="scss">
Expand Down
12 changes: 4 additions & 8 deletions src/views/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
</div>
</template>

<script setup>
import { defineComponent, onMounted, reactive, ref } from 'vue'
import store from '@/store'
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import router from '@/router'
import { getShareInfoApi, openShareApi } from '@/api/share'
import backToSvgVue from '@/components/backTo/backToSvg.vue'
Expand All @@ -29,8 +28,7 @@ const toPageHome = () => {
}
const userName = ref('')
const location = ref('')
const BE_URL = import.meta.env.VITE_BE_URL.replace('/api/', '')
const BASE_CDN_URL = store.state.BASE_CDN_URL
const BE_URL: string = import.meta.env.VITE_BE_URL.replace('/api/', '')
const imgUrl = ref('https://img.yzcdn.cn/vant/cat.jpeg')
const getShareInfo = async() => {
const data = await getShareInfoApi({
Expand All @@ -43,9 +41,7 @@ const getShareInfo = async() => {
}
}
const openShare = async() => {
const data = await openShareApi({
shareId,
})
await openShareApi({ shareId })
}
onMounted(() => {
openShare()
Expand Down

1 comment on commit db0fbdd

@vercel
Copy link

@vercel vercel bot commented on db0fbdd Apr 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.