mirror of
https://github.com/yangzongzhuan/RuoYi-App.git
synced 2025-09-27 22:52:40 +00:00
使用Pinia代替Vuex进行数据存储
This commit is contained in:
@@ -43,9 +43,11 @@
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const url = getApp().globalData.config.appInfo.site_url
|
||||
const version = getApp().globalData.config.appInfo.version
|
||||
<script setup>
|
||||
import { useConfigStore } from '@/store'
|
||||
|
||||
const url = useConfigStore().config.appInfo.site_url
|
||||
const version = useConfigStore().config.appInfo.version
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
Reference in New Issue
Block a user