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

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