全局属性-子菜单-小标题组件修改写法
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user