|
@@ -9,6 +9,7 @@ import androidx.appcompat.app.AlertDialog
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import androidx.fragment.app.Fragment
|
|
import androidx.fragment.app.Fragment
|
|
import androidx.lifecycle.ViewModelProvider
|
|
import androidx.lifecycle.ViewModelProvider
|
|
|
|
+import com.hx.utils.application.BuildConfig
|
|
import com.hx.utils.application.base.BaseWebView
|
|
import com.hx.utils.application.base.BaseWebView
|
|
import com.hx.utils.application.databinding.FragmentWebBinding
|
|
import com.hx.utils.application.databinding.FragmentWebBinding
|
|
|
|
|
|
@@ -35,9 +36,9 @@ class WebFragment : Fragment() {
|
|
errorTip()
|
|
errorTip()
|
|
|
|
|
|
}
|
|
}
|
|
- webView?.loadUrl("初始默认地址") ?: run {
|
|
|
|
|
|
+ webView?.loadUrl(BuildConfig.testUrl) ?: run {
|
|
webView = BaseWebView(requireActivity()).apply {
|
|
webView = BaseWebView(requireActivity()).apply {
|
|
- loadUrl("初始默认地址")
|
|
|
|
|
|
+ loadUrl(BuildConfig.testUrl)
|
|
}
|
|
}
|
|
binding.mainWeb.addView(
|
|
binding.mainWeb.addView(
|
|
webView, LinearLayout.LayoutParams(
|
|
webView, LinearLayout.LayoutParams(
|