取消vscode配置忽略
This commit is contained in:
parent
45a31db37f
commit
d40b706457
|
|
@ -1,4 +1,3 @@
|
||||||
.vscode
|
|
||||||
.idea
|
.idea
|
||||||
*.iws
|
*.iws
|
||||||
*.iml
|
*.iml
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,3 @@ components.d.ts
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
# lock
|
|
||||||
|
|
||||||
package-lock.json
|
|
||||||
yarn.lock
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"editor.detectIndentation": false,
|
||||||
|
"editor.tabSize": 4,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": true
|
||||||
|
},
|
||||||
|
"css.validate": false,
|
||||||
|
"less.validate": false,
|
||||||
|
"scss.validate": false
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
export default () => ({
|
export default () => ({
|
||||||
title: '搜索',
|
title: '搜索',
|
||||||
name: 'search',
|
name: 'search',
|
||||||
disabled: true,
|
disabled: 1,
|
||||||
content: {},
|
content: {},
|
||||||
styles: {}
|
styles: {}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -72,21 +72,26 @@ const getSelectWidget = computed(() => {
|
||||||
|
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const data = await getDecoratePages({ id: activeMenu.value })
|
const data = await getDecoratePages({ id: activeMenu.value })
|
||||||
|
menus[String(data.id)].pageData = JSON.parse(data.pageData)
|
||||||
}
|
}
|
||||||
const setData = async () => {
|
const setData = async () => {
|
||||||
await setDecoratePages(menus[activeMenu.value])
|
await setDecoratePages({
|
||||||
feedback.msg('保存成功')
|
...menus[activeMenu.value],
|
||||||
|
pageData: JSON.stringify(menus[activeMenu.value].pageData)
|
||||||
|
})
|
||||||
|
getData()
|
||||||
|
feedback.msgSuccess('保存成功')
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
activeMenu,
|
activeMenu,
|
||||||
() => {
|
() => {
|
||||||
selectWidgetIndex.value = getPageData.value.findIndex((item) => !item.disabled)
|
selectWidgetIndex.value = getPageData.value.findIndex((item) => !item.disabled)
|
||||||
|
getData()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true
|
immediate: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
getData()
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.decoration-pages {
|
.decoration-pages {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"editor.detectIndentation": false,
|
||||||
|
"editor.tabSize": 4,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": true
|
||||||
|
},
|
||||||
|
"css.validate": false,
|
||||||
|
"less.validate": false,
|
||||||
|
"scss.validate": false
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue