Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
贾志伟 committed Apr 4, 2024
1 parent b93c143 commit a3cc53c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jiazhiwei/dev-server-web",
"version": "2.0.0",
"version": "2.0.1",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineStore } from "pinia";

export const useGlobalStore = defineStore('globalData', () => {
const mockSetting = ref({} as any);
const assetsSetting = ref({} as any);
const assetsSetting = ref({list: {}, upload: {}, delete: {}, update: {}} as any);
const setSetting = (settingFor: string, setting: any) => {
if(settingFor === 'mock') {
mockSetting.value = setting;
Expand Down
12 changes: 0 additions & 12 deletions src/views/AssetsManage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,6 @@ const hasListApi = computed(() => !!setting.value?.list?.url);
const hasDeleteApi = computed(() => !!setting.value?.delete?.url);
const hasUpdateApi = computed(() => !!setting.value?.update?.url);
assetsList.value.push({
name: 'test',
url: 'https://i.postimg.cc/PqS1T023/89.jpg',
extension: 'jpg',
},
{
name: '风景',
url: 'https://i.postimg.cc/7Y9jnxVt/12.jpg',
extension: 'jpg',
}
);
const favoritedList = computed(() => assetsList.value.filter(item => item.isFavorited));
const otherSetData = computed(() => {
Expand Down

0 comments on commit a3cc53c

Please sign in to comment.