修改 nacos-federation 插件,实现 接口请求基地址从 配置中心获取,并注入到环境变量中
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {product} from '@domains/product/di/productModule';
|
||||
import {ProductType} from '@domains/product/domain/type/ProductType';
|
||||
import {defineComponent, onMounted, reactive} from 'vue'
|
||||
import {useRoute} from 'vue-router'
|
||||
import { product } from '@domains/product/di/productModule';
|
||||
import { ProductType } from '@domains/product/domain/type/ProductType';
|
||||
import { defineComponent, onMounted, reactive } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
interface storeType {
|
||||
item: ProductType
|
||||
@@ -36,13 +36,13 @@ export default defineComponent({
|
||||
return () => (
|
||||
<div class="ProductDetail">
|
||||
<h1>商品领域模块 - 商品详情页面</h1>
|
||||
<hr />
|
||||
<p>商品id:{state.id}</p>
|
||||
{state.item.name}
|
||||
<hr/>
|
||||
<p>商品id:{ state.id }</p>
|
||||
{ state.item.name }
|
||||
<ul>
|
||||
{
|
||||
Object.entries(state.item).map(([key, value]) =>
|
||||
<li>{key}: {value}</li>
|
||||
Object.entries(state.item).map(([ key, value ]) =>
|
||||
<li>{ key }: { value }</li>
|
||||
)
|
||||
}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user