Commit 78903eb7 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin]: 删除不必要的代码

parent 79f71649
...@@ -61,9 +61,5 @@ export function deleteStorage(data) { ...@@ -61,9 +61,5 @@ export function deleteStorage(data) {
}) })
} }
export function getUploadApi(data) {
return process.env.OS_API + '/storage/create'
}
const uploadPath = process.env.OS_API + '/storage/create' const uploadPath = process.env.OS_API + '/storage/create'
export { uploadPath } export { uploadPath }
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<script> <script>
import { listGoods, updateGoods, deleteGoods } from '@/api/goods' import { listGoods, updateGoods, deleteGoods } from '@/api/goods'
import { createStorage, getUploadApi } from '@/api/storage' import { createStorage } from '@/api/storage'
import waves from '@/directive/waves' // 水波纹指令 import waves from '@/directive/waves' // 水波纹指令
import BackToTop from '@/components/BackToTop' import BackToTop from '@/components/BackToTop'
import Editor from '@tinymce/tinymce-vue' import Editor from '@tinymce/tinymce-vue'
...@@ -219,10 +219,9 @@ export default { ...@@ -219,10 +219,9 @@ export default {
directives: { waves }, directives: { waves },
data() { data() {
return { return {
list: undefined, list: [],
galleryFileList: [], galleryFileList: [],
UPLOAD_API: getUploadApi(), total: 0,
total: undefined,
listLoading: true, listLoading: true,
listQuery: { listQuery: {
page: 1, page: 1,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment