mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 10:12:54 +08:00
修改522
This commit is contained in:
@@ -45,9 +45,13 @@ const id = computed(() => {
|
||||
});
|
||||
|
||||
const emit = defineEmits({});
|
||||
|
||||
const secondItem = store.state.project_level.find((e, index) => index === 1);
|
||||
const options = computed(() =>
|
||||
store.state.project_level.map((e) => ({
|
||||
store.state.project_level
|
||||
.sort((a, b) => parseInt(b.value) - parseInt(a.value))
|
||||
.filter((e) => e != secondItem)
|
||||
.concat(secondItem)
|
||||
.map((e) => ({
|
||||
value: parseInt(e.value),
|
||||
label: e.name,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user