Skip to content

Commit

Permalink
refactor: guid 通过 uni.$uv.guid() 调用
Browse files Browse the repository at this point in the history
  • Loading branch information
codercup2 committed Feb 21, 2024
1 parent a92b8df commit 6362422
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/demo/page/waterfall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
</template>

<script lang="ts" setup>
// eslint-disable-next-line import/extensions
import { guid } from '@climblee/uv-ui/libs/function/index.js'
const list = ref([]) // 瀑布流全部数据
const lists = reactive({
list1: [], // 瀑布流第一列数据
Expand Down Expand Up @@ -126,7 +123,7 @@ const getData = (): Promise<{ data: any[] }> => {
const doFn = (i: number) => {
const randomIndex = Math.floor(Math.random() * 10)
return {
id: guid(),
id: uni.$uv.guid(),
allowEdit: i === 0,
image: imgs[randomIndex].url,
w: imgs[randomIndex].width,
Expand Down

0 comments on commit 6362422

Please sign in to comment.