docs: 增加推广链接
This commit is contained in:
parent
e5732c36fb
commit
fc8283980e
@ -65,6 +65,7 @@ module.exports = {
|
|||||||
'vue/multi-word-component-names': 'off',
|
'vue/multi-word-component-names': 'off',
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
'no-underscore-dangle': 'off',
|
'no-underscore-dangle': 'off',
|
||||||
|
'no-use-before-define': 'off',
|
||||||
},
|
},
|
||||||
// eslint-import-resolver-typescript 插件,@see https://www.npmjs.com/package/eslint-import-resolver-typescript
|
// eslint-import-resolver-typescript 插件,@see https://www.npmjs.com/package/eslint-import-resolver-typescript
|
||||||
settings: {
|
settings: {
|
||||||
|
@ -16,12 +16,31 @@
|
|||||||
<button @click="testRequest2" class="my-4">测试 POST 请求</button>
|
<button @click="testRequest2" class="my-4">测试 POST 请求</button>
|
||||||
<view class="text-xl">请求数据如下</view>
|
<view class="text-xl">请求数据如下</view>
|
||||||
<view class="text-green h-10">{{ JSON.stringify(data2) }}</view>
|
<view class="text-green h-10">{{ JSON.stringify(data2) }}</view>
|
||||||
|
|
||||||
|
<view class="my-2">使用的是 laf 云后台</view>
|
||||||
|
<view class="text-green-400">我的推荐码,可以获得佣金</view>
|
||||||
|
<!-- #ifdef H5 -->
|
||||||
|
<view class="my-2 text-center">
|
||||||
|
<a class="my-2 text-center" :href="recommendUrl" target="_blank">{{ recommendUrl }}</a>
|
||||||
|
</view>
|
||||||
|
<!-- #endif -->
|
||||||
|
|
||||||
|
<!-- #ifndef H5 -->
|
||||||
|
<view class="my-2 text-left text-sm">{{ recommendUrl }}</view>
|
||||||
|
<!-- #endif -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { getFoo, postFoo, FooItem } from '@/service/foo'
|
import { getFoo, postFoo, FooItem } from '@/service/foo'
|
||||||
|
|
||||||
|
const recommendUrl = ref('http://laf.run/signup?code=ohaOgIX')
|
||||||
|
|
||||||
|
onLoad(() => {
|
||||||
|
testRequest()
|
||||||
|
testRequest2()
|
||||||
|
})
|
||||||
|
|
||||||
const data = ref<FooItem>()
|
const data = ref<FooItem>()
|
||||||
const testRequest = async () => {
|
const testRequest = async () => {
|
||||||
const res = await getFoo('菲鸽')
|
const res = await getFoo('菲鸽')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user