Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<a href="https://gitee.likeshop.cn/giteemddai">![gitee头图 java.png](https://resource.likeshop.cn/gitee/mddai.png)</a><br>
<h1 align="center">likeadmin通用管理后台(Python)</h1>
<h1 align="center">likeadmin通用管理后台(Python)已升级最新python3.13.0</h1>
<h4 align="center">🚀快速开发、🛠️ 一键生成代码、✅后台多端自适应、📱手机端</h4>
<p align="center">
<a href="https://www.java.com/zh-CN/download/"><img src="https://img.shields.io/badge/Python-3.5-fadf6f"> </a><a href="#"> <img src="https://img.shields.io/badge/FastAPI-0.85.0-46968a"> </a><a href="https://www.tslang.cn/"><img src="https://img.shields.io/badge/TypeScript-3-294e80"></a> <a href="#"><img src="https://img.shields.io/badge/Vue.js-3-4eb883"> </a><a href="#"><img src="https://img.shields.io/badge/vite-2-ffc018"> </a><a href="#"><img src="https://img.shields.io/badge/Element Plus-2-409eff"> </a><a target="_blank" href="https://www.docker.com/"><img src="https://img.shields.io/badge/Docker--139cff"></a>
<a href="https://www.java.com/zh-CN/download/"><img src="https://img.shields.io/badge/Python-3.13.0-fadf6f"> </a><a href="#"> <img src="https://img.shields.io/badge/FastAPI-0.116.1.0-46968a"> </a><a href="https://www.tslang.cn/"><img src="https://img.shields.io/badge/TypeScript-3-294e80"></a> <a href="#"><img src="https://img.shields.io/badge/Vue.js-3-4eb883"> </a><a href="#"><img src="https://img.shields.io/badge/vite-3-ffc018"> </a><a href="#"><img src="https://img.shields.io/badge/Element Plus-2-409eff"> </a><a target="_blank" href="https://www.docker.com/"><img src="https://img.shields.io/badge/Docker--139cff"></a>
</p>
<p align="center">
<a href="https://mp.weixin.qq.com/"><img src="https://img.shields.io/badge/微信-公众号-05ce66"></a> <a href="https://mp.weixin.qq.com/"><img src="https://img.shields.io/badge/微信-小程序-05ce66"></a> <a href="https://open.weixin.qq.com/"><img src="https://img.shields.io/badge/微信-开放平台-05ce66"></a> <a href="https://cloud.tencent.com/"><img src="https://img.shields.io/badge/腾讯云-COS-00a3ff"></a>
Expand All @@ -16,7 +16,6 @@
<br>



## 👀体验
### 管理后台
地址:https://python-admin.likeadmin.cn <br>
Expand Down
2 changes: 1 addition & 1 deletion admin/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useDark, useWindowSize, useThrottleFn } from '@vueuse/core'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import useAppStore from './stores/modules/app'
import useSettingStore from './stores/modules/setting'
import { ScreenEnum } from './enums/appEnums'
Expand Down
12 changes: 8 additions & 4 deletions admin/src/components/material/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ const typeValue = computed<number>(() => {
return 0
}
})
const visible: Ref<boolean> = inject('visible')!
const visible: Ref<boolean> = inject('visible', ref(false))!
const previewUrl = ref('')
const showPreview = ref(false)
const {
Expand Down Expand Up @@ -464,8 +464,12 @@ const {

const getData = async () => {
await getCateLists()
treeRef.value?.setCurrentKey(cateId.value)
getFileList()
setTimeout(() => {
treeRef.value?.setCurrentKey(cateId.value)
}, 50)
setTimeout(() => {
getFileList()
}, 150)
}

const handlePreview = (url: string) => {
Expand All @@ -474,7 +478,7 @@ const handlePreview = (url: string) => {
}
watch(
visible,
async (val: boolean) => {
(val: boolean) => {
if (val) {
getData()
}
Expand Down
2 changes: 1 addition & 1 deletion admin/src/components/upload/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default defineComponent({
const getAccept = computed(() => {
switch (props.type) {
case 'image':
return '.jpj,.png,.gif,.jpeg,.ico,.bmp'
return '.jpg,.png,.gif,.jpeg,.ico,.bmp'
case 'video':
return '.wmv,.avi,.mov,.mp4,.flv,.rmvb'
default:
Expand Down
2 changes: 1 addition & 1 deletion admin/src/components/video-player/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script setup lang="ts">
import { reactive, shallowRef } from 'vue'
import 'vue3-video-play/dist/style.css'
import VideoPlay from 'vue3-video-play'
import VideoPlay from 'vue3-video-play/dist/index.umd.js'
const props = defineProps({
src: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion admin/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
@import 'dark.css';
@import 'var.css';
@import 'tailwind.css';
@import 'public.scss';
@import 'public.scss';
4 changes: 4 additions & 0 deletions admin/src/styles/public.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
body {
@apply text-base text-tx-primary overflow-hidden min-w-[375px];
.w-\[280px\] {
width: 280px;
}
}
.form-tips {
@apply text-tx-secondary text-xs leading-6 mt-1;
Expand All @@ -16,3 +19,4 @@ body {
#nprogress .bar {
@apply bg-primary #{!important};
}

11 changes: 10 additions & 1 deletion admin/src/utils/request/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,16 @@ export class Axios {
config: Partial<AxiosRequestConfig>,
options?: Partial<RequestOptions>
): Promise<T> {
return this.request({ ...config, method: RequestMethodsEnum.GET }, options)
const params = {
...(config.params || {})
}
Object.keys(params).forEach((key) => {
if (params[key] === undefined || params[key] === null || params[key] === '') {
delete params[key]
}
})
console.log("params", params)
return this.request({ ...config, params, method: RequestMethodsEnum.GET }, options)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion admin/src/utils/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const defaultOptions: AxiosRequestConfig = {
// 开启请求超时重新发起请求请求机制
isOpenRetry: true,
// 重新请求次数
retryCount: 2
retryCount: 0
}
}

Expand Down
4 changes: 2 additions & 2 deletions admin/src/views/article/lists/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<el-form-item label="文章状态">
<el-select class="w-[280px]" v-model="queryParams.isShow">
<el-option label="全部" value />
<el-option label="显示" :value="1" />
<el-option label="隐藏" :value="0" />
<el-option label="显示" value="1" />
<el-option label="隐藏" value="0" />
</el-select>
</el-form-item>
<el-form-item>
Expand Down
1 change: 1 addition & 0 deletions admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig({
// base: '/admin/',
server: {
host: '0.0.0.0',
port: 5174
},
plugins: [
vue(),
Expand Down
Loading