全局属性-子菜单-小标题组件修改写法

This commit is contained in:
zhujiyan
2024-05-06 20:15:39 +08:00
parent 76a2300799
commit a18257f73f

View File

@@ -3,21 +3,11 @@
<p><slot name="nav_name"></slot></p>
</div>
</template>
<script>
<script setup>
import { useConfig } from '@/stores/config'
export default {
components: {},
data() {
return {
borderColor: ''
}
},
mounted() {
const configStore = useConfig()
this.borderColor = configStore.getColorVal('elementUiPrimary')
},
methods: {}
}
import { ref } from 'vue'
const configStore = useConfig()
const borderColor =configStore.getColorVal('elementUiPrimary')
</script>
<style lang="scss" scoped>
.nav_title {