From b9b48e139b5c71c2889077c123e53b99dcf59f1f Mon Sep 17 00:00:00 2001 From: Elune <201507802@qq.com> Date: Thu, 19 Dec 2019 12:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=85=8D=E8=B4=B9=E5=9B=BE?= =?UTF-8?q?=E5=BA=8A=E7=AE=A1=E7=90=86=EF=BC=8C=E9=9C=80=E8=A6=81=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=8F=AF=E4=BB=A5=E5=89=8D=E5=BE=80=EF=BC=9A?= =?UTF-8?q?https://sm.ms/=20=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/tools/picture.js | 13 +- src/components/SvgIcon/index.vue | 2 +- src/views/tools/picture/index.vue | 200 ------------------------------ 4 files changed, 5 insertions(+), 212 deletions(-) delete mode 100644 src/views/tools/picture/index.vue diff --git a/package.json b/package.json index 2cf4532..d508830 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", "test:unit": "jest --clearCache && vue-cli-service test:unit", - "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", + "svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml", "new": "plop" }, "husky": { diff --git a/src/api/tools/picture.js b/src/api/tools/picture.js index a689c77..f5ea30f 100644 --- a/src/api/tools/picture.js +++ b/src/api/tools/picture.js @@ -1,18 +1,11 @@ import request from '@/utils/request' -export function del(id) { +export function del(ids) { return request({ - url: 'api/pictures/' + id, - method: 'delete' - }) -} - -export function delAll(ids) { - return request({ - url: 'api/pictures/', + url: 'api/pictures', method: 'delete', data: ids }) } -export default { del, delAll } +export default { del } diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index b07ded2..9a3318e 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -1,7 +1,7 @@ diff --git a/src/views/tools/picture/index.vue b/src/views/tools/picture/index.vue deleted file mode 100644 index f04d24a..0000000 --- a/src/views/tools/picture/index.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - - -