Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-03-24 11:22:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0405ec1dc295fed8522c8694f7c530ec7aadb796
0405ec1d
1 parent
c8cf6294
fix
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
9 deletions
components.d.ts
config/index.js
src/pages/index/index.vue
src/utils/request.js
components.d.ts
View file @
0405ec1
...
...
@@ -7,10 +7,8 @@ export {}
declare
module
'@vue/runtime-core'
{
export
interface
GlobalComponents
{
NutCol
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Col'
]
NutConfigProvider
:
typeof
import
(
'@nutui/nutui-taro'
)[
'ConfigProvider'
]
NutDialog
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Dialog'
]
NutRow
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Row'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
}
...
...
config/index.js
View file @
0405ec1
...
...
@@ -10,6 +10,7 @@ const path = require('path')
import
ComponentsPlugin
from
'unplugin-vue-components/webpack'
import
NutUIResolver
from
'@nutui/nutui-taro/dist/resolver'
// 配置LESS全局变量
const
pluginOptions
=
{
less
:
{
patterns
:
[
path
.
resolve
(
__dirname
,
'..'
,
'src/assets/styles/base.less'
)],
...
...
src/pages/index/index.vue
View file @
0405ec1
<template>
<view class="index">
<nut-row>
<nut-col :span="is_pc ? 22 : 24" :offset="is_pc ? 1 : 0">
<div style="background-color: red; color: white;">span:24</div>
</nut-col>
</nut-row>
<nut-config-provider :theme-vars="themeVars">
<nut-dialog no-cancel-btn title="温馨提示" content="表单收集量已达到限额,无法再提交数据。" v-model:visible="show_reach_sjsj_max_count" @ok="onOk" />
</nut-config-provider>
...
...
src/utils/request.js
View file @
0405ec1
/*
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-03-2
3 17:56:2
9
* @LastEditTime: 2023-03-2
4 11:16:1
9
* @FilePath: /custom_form/src/utils/request.js
* @Description: 简单axios封装,后续按实际处理
*/
...
...
@@ -30,7 +30,7 @@ import { DEV_PROXY_TARGET, PROD_PROXY_TARGET, PROGRAM_PREFIX } from '../../confi
// import { getToken } from '@/utils/auth'
// import BASE_URL from './config';
let
BASE_URL
=
''
if
(
process
.
env
.
NODE_ENV
!
==
'development'
)
{
if
(
process
.
env
.
NODE_ENV
=
==
'development'
)
{
BASE_URL
=
DEV_PROXY_TARGET
// 测试服务器
}
else
{
BASE_URL
=
PROD_PROXY_TARGET
// 正式服务器
...
...
Please
register
or
login
to post a comment